Skip to main content
POST
Start a chat

Authorizations

Authorization
string
header
required

API key authentication using Bearer token format: Bearer <basedash_api_key>

Headers

Idempotency-Key
string

A unique key (up to 255 characters) that makes retries safe: repeating a request with the same key returns the original result instead of creating a duplicate.

Maximum string length: 255

Path Parameters

orgId
string
required

Organization ID

Query Parameters

wait
integer

Maximum number of seconds (1-300) to hold the request open while the assistant responds. If the response finishes in time the completed message is returned; otherwise the request returns HTTP 202 with the in-progress message. Omit to return immediately.

Required range: 1 <= x <= 300

Body

application/json
message
string
required

The message to send to the AI agent, e.g. a question about your data. Maximum 10,000 characters.

Required string length: 1 - 10000

Response

The Idempotency-Key was already used, so the existing chat is returned instead of creating a duplicate

data
object
required