Chat

Send a message

Send a message and get an AI response. Returns 201 for new chats, 200 for existing ones. To append to the latest output-capped assistant response, omit message and send chat_uuid and continue_message_id. Continuation returns the same user_message_id and assistant messageId with the combined text. Existing conversations require X-Chat-Restore-Token in addition to project access.

Chat and answer continuations consume interactions from your team's allowance. With extra usage enabled, interactions beyond that allowance cost $0.05 each. See extra usage.

Required permission: chats_create

post/api/v2/projects/{slug}/chats/

Request

  • Base URL: https://app.biel.ai
  • URL: https://app.biel.ai/api/v2/projects/{slug}/chats/
  • Auth: one of:
    • API key in header Authorization
    • none

Path parameters

slugstring required

Project slug identifier.

Headers

X-Chat-Restore-Tokenstring

Required when chat_uuid is supplied. Opaque capability returned by the previous response.

Request body

OR

Response

Message sent successfully

user_message_idstring
chat_uuidstring
restore_tokenstring

Opaque capability for this conversation. Keep it with chat_uuid and send it only in X-Chat-Restore-Token, never in URLs.

Changes

No recorded changes to this operation across all 1 revision of this API.