Parameters
Optional. 1–255 printable ASCII characters without spaces; a UUID is recommended. See Idempotency.
Who the event belongs to. Send
id, or at least one of external_id, email, phone. See How the contact is found.Event name, 1–100 characters. See Event names.
Free-form data about the event, at most 4 KB as JSON. Some keys are checked — see Properties.
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.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.
The message (
msg_ prefix) that led to this event. Max 80 characters. See Attribution.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
- 202 Accepted
- 200 OK — duplicate
- 400 Bad Request
- 404 Not Found
- 409 Conflict
- 422 Unprocessable
The event was recorded.
ID of the recorded event, a UUID. It has no prefix — the
evt_ prefix belongs to webhook deliveries.The contact the event was recorded for (
c_ prefix) — the one that matched, or the one this event created.The event name as stored: lower-cased, with common spellings mapped to the canonical name (
purchase → order.completed).milestone or activity. See Event names.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 bycheckout.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
contact.idis sent — that contact is used. If it does not exist in the workspace the answer is404; nothing else is tried.- Otherwise an existing contact is looked up by exact match, in this order:
external_id, thenemail, thenphone(brought into international format first). If the identifiers point to different contacts, the first match in this order wins; contacts are not merged. - No match — a new contact is created from
external_id,email,phone,first_nameandlast_name, withsource: "API"and without any consent record. Acontact.createdwebhook 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, answers422 validation_failed.
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 answers400withdetails[].field: "message_id".aw_c— theaw_cquery 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.
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 conflictwith aRetry-Afterheader. Wait that long and send the same request again. - A request rejected with a
4xxfrees its key: fix the request and send it again with the same key. - After a
500or 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 answers409for an attempt that ended without a result. - A request refused before it ran (
429,503) does not use the key up.
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.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
202or200is 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_keyis always safe. It never starts a campaign twice, and it completes a start that was interrupted. - Calls that were refused (
429,503and other5xx) are shown to the workspace owner on the campaign. They are not made up for: only a retry records the event.
- Send a body
idempotency_keywith every event — one key per thing that really happened (signup:usr_9901), the same on every attempt. Fororder.completedtheorder_iddoes this job. - An
Idempotency-Keyheader 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. - Keep the event until it is answered with
202or200. 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. - 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.
sendEvent returned.
Errors
All codes of the API are listed in the error code catalogue.
Related
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.