Events

Bulk ingest events

Changed on

Use when batching usage events (e.g. backfill or high-volume ingestion). More efficient than single event calls; returns 202 when accepted.

post/events/bulk

Request

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/events/bulk
  • Auth
    API key in header x-api-key

Request body

Example request

{
  "events": [
    {
      "customer_id": "customer456",
      "event_id": "event123",
      "event_name": "api_request",
      "external_customer_id": "customer456",
      "properties": {
        "\"response_status\"": "200}",
        "{\"request_size\"": "100"
      },
      "source": "api",
      "timestamp": "2024-03-20T15:04:05Z"
    }
  ]
}

Response

message:Event accepted for processing

object required

Changes

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      added the new too_many_requests enum value to the response property for the response status

    • warning

      added the new too_many_requests enum value to the response property for the response status