Skip to main content

Endpoint Details

URL: https://platform.runonatlas.com/external/event Method: POST Authentication: The API requires authentication using an API key.
  • Header: x-api-key (Required)
  • Value: Provided by Atlas OR one can be created in Settings > API Keys (Required)

Request Parameters

  • eventName (string): Name of the event being tracked
  • generatedAt (string): ISO 8861 timestamp of event creation
  • customerId (string): Unique identifier for the customer

Optional Parameters

  • idempotencyKey (string): Globally unique UUID to prevent duplicate event processing. Recommended for ensuring exactly-once event delivery. If not provided, Atlas will generate one based on event payload.
  • userId (string): Unique identifier for the end user (the customer’s user)
  • data (object): Key-value pair for additional event metadata. Used to provide context for event identification and usage calculation. Can include any relevant information about the event.

Example Request

Best Practices

  • Always include an idempotencyKey
  • Use meaningful event names
  • Provide comprehensive data for accurate usage tracking