Chat

Start a thread

Optional — POST /chat mints one when no conversation_id is given. With Idempotency-Key (or idempotency_key in the body, which wins when both are sent) the create is one thread however often it is sent: the first send answers 201, every resend answers 200 with replayed: true and the thread the first send made — its model and title, whatever the resend named.

POST
/v1/chat/conversations
POST
/v1/chat/conversations
Start a thread
Optional — POST /chat mints one when no conversation_id is given.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
Start a thread
curl --request POST \
  --url 'https://api.auray.ai/v1/chat/conversations' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "id": "<string>",
  "object": "<string>",
  "model": "<string>",
  "title": "<string>",
  "created_at": "<string>",
  "replayed": true
}
Start a thread
curl -X POST https://api.auray.ai/v1/chat/conversations \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
{
  "id": "<string>",
  "object": "<string>",
  "model": "<string>",
  "title": "<string>",
  "created_at": "<string>",
  "replayed": true
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — text:write, or the older chat:write.

Headers

Idempotency-Keystring
Your own name for this thread. A resend with the same key answers the thread the first send made rather than a second one.

Body

application/json
modelstringdefault: "glm-5-3-flash"
The first five are the slots, and the default is the first of them. qwen and kimi are the names two of these slots carried until 2026-09-14; they are still accepted and map to glm-5-3-flash and deepseek-v4-1-flash, and will be withdrawn once integrations have moved. A catalogue language model whose GET /models row carries chat answers here too, named by its address (auray-serverless/model/…, its catalogue slug also accepted) — no row carries it until such models are in force at the chat doors. One of "glm-5-3-flash", "deepseek-v4-1-flash", "kimi-k3", "qwen3-8", "glm-5-3", "qwen", "kimi", "auray-serverless/model/openai-gpt-5-nano"
and 18 more"auray-serverless/model/openai-gpt-5-mini", "auray-serverless/model/openai-gpt-5-4-nano", "auray-serverless/model/openai-gpt-5-4-mini", "auray-serverless/model/openai-gpt-5-4", "auray-serverless/model/openai-gpt-5-5", "auray-serverless/model/anthropic-claude-haiku-4-5", "auray-serverless/model/anthropic-claude-sonnet-4-6", "auray-serverless/model/anthropic-claude-opus-4-7", "auray-serverless/model/anthropic-claude-opus-4-8", "auray-serverless/model/anthropic-claude-fable-5", "auray-serverless/model/google-gemma-4-31b", "auray-serverless/model/google-gemini-3-1-flash-lite", "auray-serverless/model/google-gemini-3-flash", "auray-serverless/model/google-gemini-3-5-flash", "auray-serverless/model/google-gemini-3-1-pro", "auray-serverless/model/xai-grok-4-3", "auray-serverless/model/minimax-m3", "auray-serverless/model/zai-glm-5-1"
titlestring
Truncated to 200 characters rather than refused, and the shortened string is what comes back. maxLength is deliberately not declared: a validator built from it would reject a title this API accepts.
idempotency_keystring
The same as the Idempotency-Key header, and wins when both are sent. Either one outside the pattern is folded into a key inside it (its SHA-256) rather than refused, because this route read neither until it began keeping one thread per key: the same key is still the same thread.

Response

application/json

The thread an earlier send with the same idempotency key made.

idstring
objectstring
One of "conversation".
modelstring
titlestring
created_atstring
replayedboolean
true when an idempotency key named a thread an earlier send made, which is answered 200 rather than 201.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Start a thread
curl -X POST https://api.auray.ai/v1/chat/conversations \
  -H "Authorization: Bearer $AURAY_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
{
  "id": "<string>",
  "object": "<string>",
  "model": "<string>",
  "title": "<string>",
  "created_at": "<string>",
  "replayed": true
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.