Events API
Events API source
Send analytics and tracking events to an Artie pipeline over HTTPS, one at a time or in batches. Artie writes them to your destination tables.
To use the Events API, create a pipeline with API as its source type. Each pipeline gets its own API service deployment.
An API source has no tables step in setup and never backfills.
Endpoints
Each pipeline serves two endpoints under its base URL. Both take POST requests with a JSON body.
| Endpoint | Request body | Response |
|---|---|---|
/v1/track | One event object | status and the event’s messageId |
/v1/batch-track | An array of one or more event objects | status and a messageIds array |
Both endpoints accept a gzip-compressed body when the request sets Content-Encoding: gzip. A request body can be at most 10 MB after decompression.
A batch is all or nothing: if one event in the array is invalid, the request fails with 400 and Artie writes none of the events.
Event format
Each event is a JSON object with these top-level fields.
| Field | Required | Value | Destination column |
|---|---|---|---|
event | Yes | The event’s name, a non-empty string | event |
timestamp | Yes | An RFC 3339 string, such as 2025-10-29T22:00:00.778Z | timestamp |
properties | Yes | An object, which can be empty | One column per key |
messageId | No | A unique string | id |
Any other top-level field also becomes a column.
If you leave out messageId, or send it as null or an empty string, Artie generates a random UUID and returns it in the response. Set your own messageId to trace an event and, when Append only is off, to deduplicate it. See Destination tables.
This event has all four fields:
{
"event": "signup",
"timestamp": "2025-10-29T22:00:00.778Z",
"properties": {
"plan": "basic",
"accountType": "email",
"freeTrial": true
},
"messageId": "8b0f62f9-1e8e-4f15-8c2a-9d23c9c6c0e2"
}Destination tables
The pipeline’s source settings decide which tables events land in. In setup, set them on the source’s Connect and verify step. On an existing pipeline, use the Source: API tab.
| Destination tables option | Where events go |
|---|---|
| One table for all events | The table you enter in Table name, with the event name in the event column |
| One table per event type | A table for each event type Artie receives, named after the event type, with no event column |
One table for all events is selected until you change it. The dashboard locks Destination tables while the pipeline is running, because a change sends events to different tables. Pause the pipeline and migrate your existing destination tables first.
Append only (recommended) appends every event instead of merging it into the destination table. With it on, rows aren’t deduplicated.
Authentication
All requests require a valid API key in the Authorization header. Keep these keys secret.
Authorization: Bearer YOUR_API_KEYYOUR_API_KEY is the secret of one of the pipeline’s ingestion API keys. A request with a missing, unknown or expired key fails with 401.
To create a key, select New API key under API Keys. The list is on the source’s Connect and verify step in setup and on the Source: API tab of an existing pipeline. Artie shows the secret once, so copy it before you close the dialog.
- A pipeline needs at least one key that hasn’t expired before it deploys.
- Each key takes an optional name and an optional expiry. A key with no expiry never expires.
- After you create or delete a key, or change its expiry, redeploy the pipeline to apply the change.
Base URL
Artie generates the base URL when you set up your pipeline. Find it as Base URL on the Review and deploy step of setup and in the source details on the pipeline’s overview.
Append the endpoint path to the base URL to get the full request URL:
BASE_URL/v1/trackBASE_URL is the value shown in the dashboard. It starts with https:// and ends with an ID that is unique to your pipeline’s source.
Next steps
Learn how to send individual events
Learn how to send events in bulk
Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.