Records an event for one contact: an order, a sign-up, a started checkout, or any name of your own. Events that count as milestones start the event-triggered campaigns that listen for that name. This endpoint is for events from your system. The events Arowana records about your messages — delivered, opened, clicked — are described in Events & analytics and reach you through webhooks.

Parameters

string
required
Bearer <api_key>
string
Optional. 1–255 printable ASCII characters without spaces; a UUID is recommended. See Idempotency.
object
required
Who the event belongs to. Send id, or at least one of external_id, email, phone. See How the contact is found.
string
required
Event name, 1–100 characters. See Event names.
object
Free-form data about the event, at most 4 KB as JSON. Some keys are checked — see Properties.
string
When the event happened, as an ISO 8601 timestamp with Z or a UTC offset (2026-03-28T09:00:00Z, 2026-03-28T10:00:00+01:00). Defaults to the time of the request.
string
Your own key for this event, max 255 characters. An event with a key that was already recorded in the workspace is not recorded again. See Idempotency.
string
The message (msg_ prefix) that led to this event. Max 80 characters. See Attribution.
string
The value of the aw_c parameter from the URL the contact landed on after clicking a link in a message. Max 80 characters. See Attribution.

Request

Response

The event was recorded.
string
ID of the recorded event, a UUID. It has no prefix — the evt_ prefix belongs to webhook deliveries.
string
The contact the event was recorded for (c_ prefix) — the one that matched, or the one this event created.
string
The event name as stored: lower-cased, with common spellings mapped to the canonical name (purchase → order.completed).
string
milestone or activity. See Event names.
boolean
false for a new event.
array
Campaign IDs (UUIDs) the contact entered because of this event. Empty when no running campaign listens for the event, when the contact is not in the campaign’s audience or may not enter it again yet, and always for activity events.
The endpoint also answers 401 unauthorized, 403 forbidden (the key lacks events:write), 429 rate_limit_exceeded and 500 internal_error, and a request can end in 502, 503 or 504. After a 429 or a 5xx you cannot count on the event being recorded — send it again as described in Retrying. See Errors below.

Event names

The name is trimmed and lower-cased. It must start with a letter or digit and may contain lowercase letters, digits and _ . : -, 100 characters at most. Names starting with lifecycle. or tracking. are reserved and refused with 400. Every event is stored as a milestone or as activity: These names have a fixed kind. Every other name — including your own — is a milestone. Common spellings are mapped to these names before the event is stored. The response field event shows the result. A milestone starts a campaign when the campaign is running, has an event trigger with exactly this name, the contact is in the campaign’s audience, and the campaign’s re-entry settings let the contact enter. A contact who is still in the campaign does not enter it a second time. Campaigns and their trigger event are listed by GET /v1/campaigns.

Properties

properties is stored with the event as you send it. These keys are checked and normalised; a value that does not fit answers 400 with details[].field: "properties". order.completed requires value (the order total) and order_id. The whole object may be at most 4 KB as JSON.

Abandoned checkout: values for the message

A campaign started by checkout.started can use two extra merge tags in its messages. They are filled from the properties of the event that started the run — send them with the event: Without these properties the tags stay empty. They only work in campaigns, not in POST /v1/messages.

How the contact is found

  1. contact.id is sent — that contact is used. If it does not exist in the workspace the answer is 404; nothing else is tried.
  2. Otherwise an existing contact is looked up by exact match, in this order: external_id, then email, then phone (brought into international format first). If the identifiers point to different contacts, the first match in this order wins; contacts are not merged.
  3. No match — a new contact is created from external_id, email, phone, first_name and last_name, with source: "API" and without any consent record. A contact.created webhook is sent. A new contact needs an email address or a phone number. A phone number that cannot be stored is left out; an email address that is not valid, or no email and no usable phone number, answers 422 validation_failed.
An event never changes an existing contact: first_name, last_name and the other identifiers are ignored once a contact matched. Use PATCH /v1/contacts/{id} to change profile data.

Attribution

To connect the event to the message that led to it, send one of:
  • message_id — the ID of the message. A value that is not a message ID answers 400 with details[].field: "message_id".
  • aw_c — the aw_c query parameter from the URL the contact opened through a link in a message. A value that is not valid, or no longer valid, is ignored.
If both are sent, message_id is used. A message that does not belong to the workspace is ignored — the event is recorded without attribution, not rejected.

Idempotency

Two mechanisms work together. Request replay — Idempotency-Key header. A repeated request with the same key and the same body within 24 hours returns the stored original response, with the original status and the header Idempotent-Replayed: true — a replayed 202 stays a 202 with duplicate: false. Nothing is recorded a second time.
  • The same key with a different body answers 409 conflict.
  • While the first request is still running, the answer is 409 conflict with a Retry-After header. Wait that long and send the same request again.
  • A request rejected with a 4xx frees its key: fix the request and send it again with the same key.
  • After a 500 or a request that never finished, send the same request again with the same keys. It is run again, finds the event if it was already recorded, and finishes what was left. This route never answers 409 for an attempt that ended without a result.
  • A request refused before it ran (429, 503) does not use the key up.
Event dedupe — idempotency_key in the body. The key is stored with the event, without a time limit. An event whose key is already recorded in the workspace is not recorded again: the answer is 200 with duplicate: true. For order.completed the order_id is the dedupe key instead, so an order is recorded once however often it is sent.
Without an Idempotency-Key header, the body idempotency_key is also used for request replay. It must then be 1–255 printable ASCII characters without spaces, and reusing it with a different body within 24 hours answers 409 instead of 200.
Give every event a stable idempotency_key of your own in the body (orders are covered by order_id). After a server error, a timeout or a network error, send the same request again unchanged — the event is recorded only once.
The dedupe key is per workspace, not per contact or event name. Use values that are unique across all your events, for example signup:usr_9901 rather than usr_9901.

Retrying

An event that was refused is not recorded, and Arowana cannot ask your system for it later. If your client does not send it again, the campaign it should have started never starts. Build the sender so that it retries on its own. What Arowana does on its side:
  • An event answered with 202 or 200 is recorded and is not lost. If starting a campaign was interrupted after that, Arowana finishes the start on its own within minutes.
  • Sending the same event again with the same body idempotency_key is always safe. It never starts a campaign twice, and it completes a start that was interrupted.
  • Calls that were refused (429, 503 and other 5xx) are shown to the workspace owner on the campaign. They are not made up for: only a retry records the event.
What your client does:
  1. Send a body idempotency_key with every event — one key per thing that really happened (signup:usr_9901), the same on every attempt. For order.completed the order_id does this job.
  2. An Idempotency-Key header is optional here. If you send one, keep it the same on every attempt for that event. Without it the body key is also the replay key.
  3. Keep the event until it is answered with 202 or 200. Store it in a queue or a table of your own, not only in memory, so a restart of your system does not drop it.
  4. Never drop an event after a 5xx, a timeout or a network error. Retry as below.
Backoff. Wait 1 s, 5 s, 30 s, 2 min and 10 min after the first five failures, then retry once an hour until 24 hours have passed since the first attempt. Add a random part to each wait (here up to 20 %), so that many waiting events do not all come back in the same second. If an event is still not accepted after 24 hours, keep it and alert a person; it can still be sent later, because the body key has no time limit. A 502, 503 or 504 can come from the network in front of the API and may have no JSON body. Decide by the status code, not by the body.
Call it from a background job that reads your stored events, and delete an event only after sendEvent returned.

Errors

All codes of the API are listed in the error code catalogue.

Events & analytics

The events Arowana records about your messages.

Campaigns

List campaigns and control their runs.

Contacts API

Create and update the contacts events belong to.

Conventions

Rate limits, idempotency and the error envelope.