Skip to main content
POST
/
api
/
v1
/
ingest
/
logs
Ingest Logs
curl --request POST \
  --url https://api.example.com/api/v1/ingest/logs \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "logs": [
    {
      "project_slug": "<string>",
      "app_id": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "environment": "<string>",
      "level": "<string>",
      "message": "<string>",
      "logger_name": "",
      "endpoint_method": "",
      "endpoint_path": "",
      "status_code": 0,
      "consumer_id": "",
      "consumer_name": "",
      "consumer_group": "",
      "trace_id": "",
      "span_id": "",
      "payload": "",
      "attributes": {}
    }
  ]
}
'
{
  "accepted": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.apilens.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Body

application/json
logs
LogRecord · object[]
required

Response

200 - application/json

OK

accepted
integer
required