Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Events API

Track a single event

POST/track

Accepts a single event object and records it for ingestion.
If messageId is not provided, the server will generate one automatically.

Authorizations

  • Authorizationstringheaderrequired

    Include your API key as:

    Text
    Authorization: Bearer YOUR_API_KEY

Request

curl --request POST \
  --url https://YOUR_EVENTS_API_HOST/v1/track \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messageId": "8b0f62f9-1e8e-4f15-8c2a-9d23c9c6c0e2",
  "event": "signup",
  "timestamp": "2025-10-29T22:00:00.778Z",
  "properties": {
    "plan": "basic",
    "accountType": "email",
    "freeTrial": true
  }
}'

Body

application/json

  • messageIdstring

    Unique identifier for this event. If not provided by the client, the server will generate one automatically. Used for deduplication and traceability through downstream systems.

  • eventstringrequired

    The name/type of the event.

  • timestampstring<date-time>required

    When the event occurred.

  • propertiesobjectrequired

    Event-specific key/value pairs.

Responses

200Request accepted and processed successfully.application/json

  • Option 1object

    Response for a single event.

    Show child attributes
    • statusstring
    • messageIdstring

      Unique ID assigned to the processed event.

  • Option 2object

    Response for a bulk request.

    Show child attributes
    • statusstring
    • messageIdsstring[]

      List of message IDs corresponding to successfully processed events.

400Invalid request payload.application/json

  • errorstring

401Missing or invalid API key.application/json

  • errorstring

413Request body too large.application/json

  • errorstring

429Too many requests; rate limit exceeded.application/json

  • errorstring

500Unexpected server error.application/json

  • errorstring
{
  "status": "ok",
  "messageId": "8b0f62f9-1e8e-4f15-8c2a-9d23c9c6c0e2"
}

Was this page helpful?