Skip to main content

CastariClient

The main client for interacting with the Castari API.

Constructor

Options

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:
API keys look like: 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:

See Also