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

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

const { documents } = await client.spaces.getLimits('space_123');
// { current: 25, max: 50, remaining: 25 }
{
  "documents": {
    "current": 123,
    "max": 123,
    "remaining": 123
  }
}

Authorizations

Oai-Api-Key
string
header
required

Path Parameters

id
string
required
Example:

"space_123"

Response

Successfully retrieved space limits

documents
object
required