Skip to content

Documentation

Build with Engentra

Connect customer data, business events, and communication channels to build automated journeys with workflows and AI.

Events

One endpoint, and it is the only one most integrations ever call. An event says a thing happened to a person; workflows decide what that is worth.

POST /v1/events

{
  "phone": "+2348012345678",
  "name": "Ada Obi",
  "type": "cart.abandoned",
  "data": { "items": "3", "value": "48500", "reference_id": "CART-8821" },
  "idempotencyKey": "cart-8821-abandoned"
}
FieldTypeNotes
typerequiredstringWhat happened. Free text, and it must match a workflow's trigger exactly — see below.
phonestringE.164. One of phone, customerId or externalId is required.
customerIduuidOur id, if you stored it.
externalIdstringYour id. Must already exist here — unlike a phone number, it will not enrol anyone.
namestringUsed only if this call creates the customer. Ignored otherwise.
dataobjectWhatever the workflow needs. At most 50 top-level fields.
data.reference_idstringOptional, and the one field inside data we treat specially: your own id for whatever this is about — an order number, a ticket, an invoice. It is what Activity searches on, so send it if you ever expect to be asked “what happened to order 8821?”. Read as text, so 8821 and ORD-8821 both work and you can change your mind later.
idempotencyKeystringSend one. The next section is about why.
tagsstring[]Optional additive customer tags, for example ["notice:2026-10-31"]. Existing tags are retained and duplicates ignored. Tags are normalized and saved before workflows run, and an immutable snapshot is returned on the event. Replays never change tags. The existing limit of 20 tags per customer still applies; invalid tags roll back the event and any new customer.
optInobject{ "evidence": "Checkout checkbox" } when the customer agreed to WhatsApp messages on your site. Recorded before the event, as your declaration with that evidence. Needed for marketing templates such as cart reminders; never lifts an opt-out. See Connect your website.

Monthly API and store event allowance

New API and store events count toward the workspace's monthly allowance, even when no workflow matches. Messages, AI-inferred intents and workflow resumes do not count. An already-recorded idempotency key does not consume another event. The allowance resets at the start of each UTC calendar month. Usage and recovery counts appear in Billing.

At the limit, ordinary API submissions receive 409 plan_limit_reached. Shopify and WooCommerce sales triggers can be held for up to 24 hours, then expire rather than sending late reminders. WooCommerce receives 202 with no recorded event while held. Known order/payment updates can still reconcile existing activity without starting new workflows over quota. Deferred delivery requires an idempotency key.

Recovery rechecks whether the customer purchased, replied or opted out. Upgrading within the recovery window can restore capacity; expired sales triggers are not replayed next month.

Event types are free text, and that cuts both ways

Nothing validates type against a list, because your vocabulary is yours. The tradeoff is that a typo is indistinguishable from a deliberate new type: order_created sent to a workspace whose workflow waits for order.created stores perfectly, returns 201, and does nothing — forever, with no error anywhere.

That is what matchedWorkflows in the response is for. Nonzero means something is waiting on this type. Zero means nothing is — which is correct and expected for an event you are recording for its own sake, and a bug the rest of the time.

Check matchedWorkflows on your first integration test

Assert this in the code that sends the event to catch a mismatch early. The alternative is finding out in month three when somebody asks why the follow-ups stopped — except they never started.

Events Engentra records for you

You do not send these. Engentra records them as things happen, against the customer they happened to, and any workflow can start from one. Use the name exactly as written here, and read its fields in a workflow as event.<field>. Every one also appears on the customer's timeline.

Conversations — WhatsApp and Instagram alike.

EventWhenWhat it means, and its fields
conversation.startedonce per threadThe first message of a new conversation. A thread that goes quiet and is reopened does not start again. Fields: conversationId, channelId, channel.
message.receivedevery messageEach message a customer sends. Usually too frequent to start a follow-up from. Fields: conversationId, channelId, channel, hasText. The text itself is not copied into the event.
conversation.idleonce per quiet spellThe customer has not written for the hours set in Settings → Workspace (1 to 23). Once per quiet spell: writing again and going quiet again records another. Fields: conversationId, quietForHours.
conversation.referredon arrivalSomebody arrived through a named link or an ad that opens a chat. Fields: conversationId, channelId, channel, ref (your label on the link), source, adId, adTitle.

Instagram

EventWhenWhat it means, and its fields
conversation.question_tappedeach tapSomebody tapped one of the questions on your Instagram profile. Fields: conversationId, channelId, channel, question, payload.
conversation.story_replyeach replySomebody answered one of your stories. Fields: conversationId, channelId, channel.
conversation.story_mentioneach mentionSomebody put your business in a story of their own. Fields: conversationId, channelId, channel.
comment.repliedonce per commentA comment on one of your posts was answered privately, which opens a thread with them. Fields: conversationId, channel, commentId.

The AI assistant — only while it is on. These are guesses from what the customer wrote, recorded only when the assistant is confident, and marked as inferred on the timeline.

EventWhenWhat it means, and its fields
product.interestinferredThe customer asked about a product in your catalog. Also tags them “interested: <product>”, so a campaign can reach everyone who asked. Fields: productId, productName, variant, messageId.
purchase.intentinferred, once a dayThe customer said they want to buy - the signal, not the sale. At most one per customer per day. Pair it with order.created to nudge somebody who drifted off and never chase somebody who bought. Fields: conversationId, messageId, products.

Orders and checkouts — from Shopify, the WooCommerce plugin, and sales marked in the inbox. Your own system can send the same names; see Orders below.

EventWhenWhat it means, and its fields
order.createdstores, inboxAn order was placed. From a store: orderNumber, total, currency, orderStatusUrl. From Mark as sold in the inbox: saleId, conversationId, amount, currency.
order.shippedstores, inboxAn order left for delivery: a Shopify fulfilment, the WooCommerce status you chose, or Mark shipped in the inbox. Adds trackingUrl, trackingNumber and carrier when they were given.
order.deliveredstores, inboxDelivery was confirmed: Shopify's shipment status reaching Delivered (with the Order update webhook), the delivered status you chose in the WooCommerce plugin, or Mark delivered in the inbox. Once per order.
checkout.startedstoresA shopper gave their phone number at checkout and has not paid yet - the start of a cart reminder. Once per checkout. Fields: cartUrl, total, currency.

Two names have no sender built in, and are worth using from your own code so workflows and the assistant recognise them: cart.abandoned, when your shop decides a cart was left behind, and order.cancelled.

Webhooks are a different list

Webhooks tell your own server about things like a message's delivery status, a sale, an opt-out or a finished campaign. Those are not customer events: no workflow starts from them, and they do not appear here.

Orders

Send orders with these types and fields and they behave exactly like Shopify's: the same workflows run, and the AI assistant can answer “where is my order?” from them. Events sharing an orderNumber are one order, at its furthest stage.

order.shipped

{
  "phone": "+2348012345678",
  "type": "order.shipped",
  "data": {
    "orderNumber": "1042",
    "trackingUrl": "https://track.example.com/AB123",
    "trackingNumber": "AB123456",
    "carrier": "GIG Logistics"
  },
  "idempotencyKey": "order-1042-shipped"
}
FieldTypeNotes
typestringorder.created, order.shipped, order.delivered or order.cancelled.
data.orderNumberstringWhat the customer sees on their receipt, without the #. Ties the stages of one order together; orderId works too.
data.totalstringOn order.created, like "18000.00".
data.currencystringOn order.created, like "NGN".
data.trackingUrl / trackingNumber / carrierstringOn order.shipped, whichever you have. The assistant gives them to the customer as sent.

Your own names for orders

Other names still store and still trigger workflows, but the assistant does not read them as an order. When one looks like it should be - order_checkout_completed, parcel_dispatched - the response says so, on the first call, with the type it probably meant:

response

{
  "event": { "type": "order_checkout_completed", ... },
  "recorded": true,
  "customerCreated": false,
  "matchedWorkflows": 0,
  "hint": "Stored, and workflows can use it, but the AI will not see it as an order: it reads orders from order.created, order.shipped, order.delivered and order.cancelled. Did you mean order.created? Or map order_checkout_completed to it in Settings → AI assistant → Your order events."
}

Either send the type Engentra reads, or keep your names and map them: Settings → AI assistant → Your order events, up to 20. Each says what one of your events means - placed, shipped, delivered or cancelled - and, when your fields are named differently, which top-level field carries the order number, total, currency, tracking link, tracking number and carrier. A mapped “placed” also counts as having ordered, so a cart reminder still stops for somebody who bought. A started checkout, an abandoned cart or a failed payment is never hinted at as an order: telling the AI one exists when it does not is worse than saying nothing. Owners only.

PUT /v1/ai/order-events

{
  "mappings": [
    { "eventType": "order_checkout_completed", "stage": "created", "orderNumberField": "ref", "totalField": "amountPaid" },
    { "eventType": "parcel_dispatched", "stage": "shipped", "orderNumberField": "ref", "trackingUrlField": "trackingLink" }
  ]
}

Seeing what happened, without asking anybody

Activity → Events lists everything received, newest first, and each row says what it started: the automations that ran, or why none did. Four different answers, because they need four different fixes — nothing is listening for that event name, an automation is listening but is switched off, one is switched on but was never published, or one was ready and still did not run for this customer.

Events pushed in also say which system sent them, so a shop running Shopify, the WooCommerce plugin and a script of its own can tell the three apart. The plugin is recognised by its User-Agent; everything else reads as your own code.

One search box takes an order reference, a phone number, an email or a name. Searching a customer shows everything reported about them, newest first, with a count beside each kind of event — so “what else has this person done?” is one click rather than another query. Each row opens to the data exactly as you sent it.

Send a reference_id if you want to search by one

data.reference_id is optional and nothing breaks without it — events are still searchable by the customer's phone, email or name. But it is the only way to find an event by your id for the thing it is about, and it has to be matched exactly. Nothing is backfilled: events already sent without one stay without one.

Deliveries that were not accepted

A refused delivery used to leave no trace here at all: the sender got a 400 and the business saw an empty list, which reads as “no orders yet” rather than “we turned eleven of them away”. Activity → Not accepted is that list — a customer we could not find, an order Shopify sent with no phone number on it, a field that failed validation — each with the exact sentence the sender was given.

Identical problems within ten minutes are shown once, each workspace keeps its most recent few hundred for a month, and nothing replays from there: by the time anyone reads it, the cart was either bought or forgotten. Fix it where it was sent from and send the next one.

Idempotency keys

Send the same key twice and the second call records nothing and returns the first event, with recorded: false. The key is scoped to your workspace and to the API source, so it cannot collide with an event that arrived some other way.

This matters more than it first appears. Consider a retry:

POST /v1/events  →  network timeout
                     (did it arrive? you cannot tell)
POST /v1/events  →  retry

Without a key, that is two events. If a workflow triggers on the type, it is also two follow-up messages to the same customer — visible, annoying, and billed twice by Meta. With a key, the retry is free and the customer notices nothing.

Make the key describe the occurrence, not the attempt. A UUID generated fresh per request defeats the entire mechanism, because the retry carries a different one. Derive it from something stable in your own data:

order-8821-created        an order can only be created once
cart-8821-abandoned-3     the third time this cart was abandoned
quote-8821-followup-2026-09-13

If recorded comes back false on every call, your key is not varying when it should. If it is never false even on retries, it is varying when it should not.

From a spreadsheet

A system that cannot call this API can still report events: export them as CSV or Excel and upload the file under Activity → Imports, or send it to POST /v1/events/imports. Say which column holds the phone number, which holds a reference such as a bill number, and what each other column is called on the event. Every usable row is then recorded exactly as POST /v1/events would record it — the customer found or added by phone, tagged, and every workflow waiting for that event type started.

Send the file to POST /v1/events/imports/preview first: it checks every row and lists the ones that cannot be used, by line, and writes nothing. Rows are keyed on the reference column, so uploading the same file again records nothing twice.

Owners only

Previewing and importing a spreadsheet need the owner role, like sending a campaign: one file can start a workflow for thousands of customers. Anyone in the workspace can see past imports at GET /v1/events/imports.

Time

An event is stamped when it is recorded. Workflows measure their delays from that moment, so an event sent from a nightly batch describes something that happened during the day but is treated as happening at the time of the batch — a “follow up in two hours” workflow will fire two hours after the batch ran, not two hours after the customer went quiet. Send events as they happen where you can.

Next

Channels →

Connect the WhatsApp number that events will eventually send from.