Logs
Report Anthropic
Getting Started
Features
- Request Logs
- Datasets
- Fine Tuning
- Direct Preference Optimization (DPO)
- Evaluations
- Criteria
- Chat Completions
- Caching
- Updating Metadata Tags
- Pruning Rules
- Fallback
- Deployments
- Mixture of Agents
- External Models
API Reference
- Logs
- Chat Completions
- Datasets
- Models
- Criteria
Pricing
Logs
Report Anthropic
Record request logs from Anthropic models
POST
/
report-anthropic
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>",
"metadata": {
"user_id": "<string>"
},
"stop_sequences": [
"<string>"
],
"stream": true,
"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": "<any>"
},
"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"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Unix timestamp in milliseconds
Unix timestamp in milliseconds
JSON-encoded request payload
JSON-encoded response payload
Available options:
text
Available options:
char_location
Available options:
assistant
Available options:
end_turn
Available options:
message
HTTP status code of response
User-friendly error message
Extra metadata tags to attach to the call for filtering. Eg { "userId": "123", "prompt_id": "populate-title" }
Response
200
application/json
Successful response
Available options:
ok
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>",
"metadata": {
"user_id": "<string>"
},
"stop_sequences": [
"<string>"
],
"stream": true,
"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": "<any>"
},
"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"
}