Skip to main content
Use chatbase api as an escape hatch for API v2 endpoints that do not have a dedicated CLI command. Pass an HTTP method and a path relative to /api/v2 — for example, /agents maps to https://www.chatbase.co/api/v2/agents. Authenticate first — see CLI Auth.

List resources

Fetch a collection:
Limit results with --field:
Add URL query parameters with --query (repeatable):

Create a resource

Send a JSON body inline:
Set individual body fields instead of raw JSON:

Update a resource

Read the body from a file with @:
Pipe JSON from stdin with @-:

Request options

Supported methods: GET, POST, PUT, PATCH, DELETE. Use --json for raw API JSON in scripts. See Chatbase CLI for other global output flags.

Commands

For every flag, run chatbase api --help.