Skip to main content
GET
/
spaces
/
{id}
TypeScript SDK
import { Orchata } from '@orchata/sdk';

const client = new Orchata({ apiKey: 'oai_your_api_key' });

const { space } = await client.spaces.get('space_123');
{
  "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"
  }
}

Authorizations

Oai-Api-Key
string
header
required

Path Parameters

id
string
required
Example:

"space_123"

Response

Successfully retrieved space

space
object
required