Skip to main content
POST
/
v1
/
logging
Push logs
curl --request POST \
  --url https://api.getmaxim.ai/v1/logging \
  --header 'Content-Type: application/json' \
  --header 'x-maxim-api-key: <api-key>' \
  --data '
{
  "repoId": "<string>",
  "entity": "trace",
  "action": "start",
  "entityId": "<string>",
  "data": {
    "name": "<string>",
    "sessionId": "<string>",
    "tags": {}
  }
}
'
{
  "success": true,
  "entity": "<string>",
  "action": "<string>",
  "entityId": "<string>"
}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json
repoId
string
required

Unique identifier for the repository

entity
enum<string>
required
Available options:
trace
action
enum<string>
required
Available options:
start
entityId
string
required

Unique identifier for the trace.

data
object
required

Response

Successfully logged message

success
boolean

Success status

entity
string

Entity type

action
string

Action performed

entityId
string

Unique identifier for the entity