curl --request POST \
--url https://api.openpipe.ai/api/v1/report-anthropic \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestedAt": 123,
"receivedAt": 123,
"reqPayload": {
"max_tokens": 123,
"messages": [
{
"content": "<string>",
"role": "user"
}
],
"model": "<string>",
"stream": true,
"metadata": {
"user_id": "<string>"
},
"stop_sequences": [
"<string>"
],
"system": "<string>",
"temperature": 123,
"top_k": 123,
"top_p": 123,
"thinking": {
"budget_tokens": 123,
"type": "enabled"
},
"tool_choice": {
"type": "auto",
"disable_parallel_tool_use": true
},
"tools": [
{
"name": "<string>",
"input_schema": {
"type": "object",
"properties": "<unknown>"
},
"description": "<string>",
"cache_control": {
"type": "ephemeral"
}
}
]
},
"respPayload": {
"id": "<string>",
"content": [
{
"text": "<string>",
"type": "text",
"citations": null
}
],
"model": "<string>",
"role": "assistant",
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"type": "message",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123
}
},
"statusCode": 123,
"errorMessage": "<string>",
"metadata": {},
"tags": {}
}
'{
"status": "ok"
}Record request logs from Anthropic models
curl --request POST \
--url https://api.openpipe.ai/api/v1/report-anthropic \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestedAt": 123,
"receivedAt": 123,
"reqPayload": {
"max_tokens": 123,
"messages": [
{
"content": "<string>",
"role": "user"
}
],
"model": "<string>",
"stream": true,
"metadata": {
"user_id": "<string>"
},
"stop_sequences": [
"<string>"
],
"system": "<string>",
"temperature": 123,
"top_k": 123,
"top_p": 123,
"thinking": {
"budget_tokens": 123,
"type": "enabled"
},
"tool_choice": {
"type": "auto",
"disable_parallel_tool_use": true
},
"tools": [
{
"name": "<string>",
"input_schema": {
"type": "object",
"properties": "<unknown>"
},
"description": "<string>",
"cache_control": {
"type": "ephemeral"
}
}
]
},
"respPayload": {
"id": "<string>",
"content": [
{
"text": "<string>",
"type": "text",
"citations": null
}
],
"model": "<string>",
"role": "assistant",
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"type": "message",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123
}
},
"statusCode": 123,
"errorMessage": "<string>",
"metadata": {},
"tags": {}
}
'{
"status": "ok"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unix timestamp in milliseconds
Unix timestamp in milliseconds
JSON-encoded request payload
Show child attributes
true, false Show child attributes
JSON-encoded response payload
Show child attributes
Show child attributes
text Show child attributes
char_location assistant end_turn message HTTP status code of response
User-friendly error message
Successful response
ok