POST
/
ingest
curl --request POST \
  --url https://sandbox-api.billingrails.com/v1/ingest \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "idempotency_key": "evt_12345",
  "event": "API request",
  "timestamp": "2025-06-28T17:33:40.843Z",
  "properties": {
    "billingrails_account_id": "acc_IhMUl3rrZ3",
    "method": "POST",
    "endpoint": "/api/v1/accounts",
    "response_code": 200,
    "request_size": 1024,
    "response_time_ms": 150
  }
}'
{
  "ingested_event": {
    "object": "ingested_event",
    "id": "ingevt_IhMUl3rrZ3",
    "idempotency_key": "evt_12345",
    "event": "API request",
    "timestamp": "2025-06-28T17:33:40.843Z",
    "properties": {
      "billingrails_account_id": "acc_IhMUl3rrZ3",
      "method": "POST",
      "endpoint": "/api/v1/accounts",
      "response_code": 200,
      "request_size": 1024,
      "response_time_ms": 150
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Ingested event payload

The body is of type object.

Response

200 - application/json

Ingested event

The response is of type object.