TypeScript
import { Orchata } from '@orchata/sdk'; const client = new Orchata({ apiKey: 'oai_your_api_key' }); const { spaces, total } = await client.spaces.list();
{ "spaces": [ { "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" } ], "total": 123, "page": 123, "pageSize": 123, "totalPages": 123 }
Retrieve a paginated list of spaces with optional status filtering
x >= 1
1 <= x <= 100
active
archived
all
Successfully retrieved spaces
Show child attributes