TypeScript
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 } }
Get current document count and limits for a space based on the organization’s tier
"space_123"
Successfully retrieved space limits
Show child attributes
Was this page helpful?