Report Anthropic
Record request logs from Anthropic models
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
JSON-encoded response payload
HTTP status code of response
User-friendly error message
Extra tags to attach to the call for filtering. Eg { "userId": "123", "promptId": "populate-title" }
curl --request POST \
--url https://app.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
},
"respPayload": {
"id": "<string>",
"content": [
{
"text": "<string>",
"type": "text"
}
],
"model": "<string>",
"role": "assistant",
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"type": "message",
"usage": {
"input_tokens": 123,
"output_tokens": 123
}
},
"statusCode": 123,
"errorMessage": "<string>",
"tags": {}
}'
{
"status": "ok"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Unix timestamp in milliseconds
Unix timestamp in milliseconds
JSON-encoded request payload
user
JSON-encoded response payload
text
assistant
end_turn
message
HTTP status code of response
User-friendly error message
Extra tags to attach to the call for filtering. Eg { "userId": "123", "promptId": "populate-title" }
Response
ok
curl --request POST \
--url https://app.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
},
"respPayload": {
"id": "<string>",
"content": [
{
"text": "<string>",
"type": "text"
}
],
"model": "<string>",
"role": "assistant",
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"type": "message",
"usage": {
"input_tokens": 123,
"output_tokens": 123
}
},
"statusCode": 123,
"errorMessage": "<string>",
"tags": {}
}'
{
"status": "ok"
}