Documentation Index
Fetch the complete documentation index at: https://docs.castari.com/llms.txt
Use this file to discover all available pages before exploring further.
CastariClient
The main client for interacting with the Castari API.Constructor
Options
| Option | Type | Description |
|---|---|---|
apiKey | string | API key for authentication (recommended) |
token | string | OAuth/JWT token for user-scoped access |
baseUrl | string | Override API base URL (default: https://api.castari.com) |
Provide either
apiKey or token, not both. If neither is provided, the client will throw an error on the first request.Authentication Methods
API Key
Best for server-side applications, CI/CD, and automation:cast_xxxxxxxx_xxxxxxxxxx
Generate one in the Castari Dashboard.
OAuth Token
Best for user-facing applications where you want user-scoped access:Properties
Example Usage
Custom Base URL
For self-hosted or development environments:Environment Variables
The SDK respects these environment variables:| Variable | Description |
|---|---|
CASTARI_API_KEY | Default API key if not provided in constructor |
CASTARI_API_URL | Default base URL if not provided |
See Also
- Agents API — Manage agents
- Secrets API — Manage secrets
- Auth API — Authentication and API keys
- Usage API — Usage statistics
- Storage API — Cloud storage buckets
- Mounts API — Agent mounts
- Files API — Managed file storage
- Types — TypeScript interfaces