POST
/
report-anthropic
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

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
requestedAt
number

Unix timestamp in milliseconds

receivedAt
number

Unix timestamp in milliseconds

reqPayload
object

JSON-encoded request payload

respPayload
object

JSON-encoded response payload

statusCode
number

HTTP status code of response

errorMessage
string

User-friendly error message

tags
object

Extra tags to attach to the call for filtering. Eg { "userId": "123", "promptId": "populate-title" }

Response

200 - application/json
status
required
Available options:
ok