x-api-key header with your CCAPI token (not Authorization).anthropic-version header is not provided, it defaults to 2023-06-01.stream: true, the response is text/event-stream.thinking parameter)x-api-key: ********************{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"system": "string",
"messages": [
{
"role": "user",
"content": null
}
],
"stream": false,
"temperature": 0,
"stop_sequences": [
"string"
],
"tools": [
{
"name": "string",
"description": "string",
"input_schema": {}
}
],
"tool_choice": {
"type": "auto",
"name": "string"
},
"thinking": {
"type": "enabled",
"budget_tokens": 0
}
}curl --location --request POST 'https://api.ccapi.ai//v1/messages' \
--header 'anthropic-version;' \
--header 'anthropic-beta;' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"system": "string",
"messages": [
{
"role": "user",
"content": null
}
],
"stream": false,
"temperature": 0,
"stop_sequences": [
"string"
],
"tools": [
{
"name": "string",
"description": "string",
"input_schema": {}
}
],
"tool_choice": {
"type": "auto",
"name": "string"
},
"thinking": {
"type": "enabled",
"budget_tokens": 0
}
}'{
"id": "msg_01ABC",
"type": "message",
"role": "assistant",
"model": "claude-opus-4-6",
"content": [
{
"type": "text",
"text": "Idempotency prevents duplicate charges, shipments, or accounting entries when payment platform notifications are retried."
}
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 58,
"output_tokens": 36
}
}