POST
/
v0
/
ingest
curl --request POST \
  --url https://api.avidoai.com/v0/ingest \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-application-id: <api-key>' \
  --data '{
  "events": [
    {
      "type": "trace",
      "timestamp": "2025-01-01T12:00:00Z",
      "referenceId": "123e4567-e89b-12d3-a456-426614174000",
      "metadata": {
        "source": "chatbot"
      }
    },
    {
      "type": "llm",
      "event": "start",
      "traceId": "123e4567-e89b-12d3-a456-426614174000",
      "timestamp": "2025-01-01T12:01:00Z",
      "modelId": "gpt-4o-2024-08-06",
      "params": {
        "temperature": 1.2
      },
      "input": [
        {
          "role": "user",
          "content": "Tell me a joke."
        }
      ]
    }
  ]
}'
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "success": true,
      "error": "Failed to write to database"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

x-application-id
string
header
required

Your unique application ID. Get this from the Connections page in Avido.

Body

application/json

Request schema for ingesting events into the system.

events
object[]
required

Array of events to be ingested, which can be threads or traces.

An event represents one step in the interaction with your AI application, such as a RAG call, tool call, LLM trigger or response.

Example:
[
  {
    "type": "trace",
    "timestamp": "2025-01-01T12:00:00Z",
    "referenceId": "123e4567-e89b-12d3-a456-426614174000",
    "metadata": { "source": "chatbot" }
  },
  {
    "type": "llm",
    "event": "start",
    "traceId": "123e4567-e89b-12d3-a456-426614174000",
    "timestamp": "2025-01-01T12:01:00Z",
    "modelId": "gpt-4o-2024-08-06",
    "params": { "temperature": 1.2 },
    "input": [
      {
        "role": "user",
        "content": "Tell me a joke."
      }
    ]
  }
]

Response

200
application/json
Successfully ingested events.

Response schema for successful event ingestion.

data
object[]
required

Array of results for each ingested event.