POST
/
api
/
v1
/
ask_camel
Ask Camel
curl --request POST \
  --url https://api.camelai.com/api/v1/ask_camel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "gpt-5",
  "message": "<string>",
  "thread_id": 123,
  "source_id": 123
}'
{
  "message": "<any>"
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Unified serializer for ask_camel endpoint.

message
string
required

The message to send to Camel

Minimum length: 1
model
enum<string>
default:gpt-5

The model to use for the query

  • sonnet-4 - Sonnet 4
  • o3 - o3
  • o4-mini - o4-mini
  • gpt-4.1 - GPT-4.1
  • gpt-5 - GPT-5
Available options:
sonnet-4,
o3,
o4-mini,
gpt-4.1,
gpt-5
thread_id
integer

Existing thread ID to use

source_id
integer

Existing connection ID to use

Response

200 - application/json

Response serializer for ask_camel endpoint.

message
any
required

The response message from Camel