Skip to main content
POST
/
v1
/
logs
/
batch
Batch push logs
curl --request POST \
  --url https://api.getmaxim.ai/v1/logs/batch \
  --header 'Content-Type: application/json' \
  --header 'x-maxim-api-key: <api-key>' \
  --data '
{
  "repoId": "<string>",
  "logs": [
    {
      "id": "<string>",
      "type": "trace",
      "name": "<string>",
      "sessionId": "<string>",
      "tags": {},
      "input": "<string>",
      "output": "<string>",
      "feedback": {
        "score": 123,
        "comment": "<string>"
      },
      "metadata": {},
      "metrics": {},
      "evaluate": {
        "evaluators": [
          "<string>"
        ],
        "variables": {}
      },
      "attachment": {
        "attachmentId": "<string>",
        "url": "<string>",
        "tags": {},
        "metadata": {}
      }
    }
  ]
}
'
{
  "success": true
}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json
repoId
string
required
logs
(Trace · object | Session · object | Span · object | Generation · object | Retrieval · object | Tool Call · object | Event · object)[]
required

Response

Successfully logged message

success
boolean

Success status