TypeScript
import { Orchata } from '@orchata/sdk'; const client = new Orchata({ apiKey: 'oai_your_api_key' }); const { space } = await client.spaces.create({ name: 'Documentation', description: 'Product documentation and guides', icon: 'book' });
{ "space": { "id": "<string>", "orgId": "<string>", "name": "<string>", "slug": "<string>", "icon": "folder", "description": "<string>", "isArchived": true, "archivedAt": "2023-12-25", "createdAt": "2023-12-25", "updatedAt": "2023-12-25" } }
Create a new space (knowledge base) in your organization
Space creation data
1 - 100
folder
book
file-text
database
package
archive
briefcase
inbox
layers
box
1 - 500
Space created successfully
Show child attributes