Delivery and events

Message statuses

One set of statuses for every channel, and what each one means.

Every channel uses the same statuses, and a message only moves forward: queued, sent, delivered, read. A late report never moves it back.

statusMeaning
queuedGhala has it; not yet with the network
sentthe network accepted it. Not delivered yet
deliveredthe network confirmed delivery
readthe person opened it, on channels that report it (WhatsApp, Instagram). Others stop at delivered
failedcertainly not delivered; failure_reason says why
expiredit ran out of time before delivery
unknownthe network may have taken it without saying so. It is charged and never sent again; a later report moves it on
receiveda person sent it to your workspace

A failure or expiry reported after delivery is ignored. Each step keeps its time: submitted_at, delivered_at, read_at and failed_at.

Why a message failed

failure_reason is one of these, and error says it in plain words. The network's own text is never shown.

failure_reason
rejectedthe network refused it
invalid_numberthe number cannot receive it
blockedthe person or the network blocked it
window_closedoutside the channel's reply window
undeliverablethe network could not deliver it
expiredit ran out of time
provider_errorthe network failed

Price

price_minor is what your workspace paid for the message, in minor units (2235 is TZS 22.35). A message that failed at the network was not charged.

Reading a status

Look one message up:

curl https://v3.ghala.io/v1/messages/beed6233-06e0-4805-aba8-c506fe88ab88 \
  -H "Authorization: Bearer $GHALA_KEY"

Or list every message of one send by the request_id it answered with:

curl "https://v3.ghala.io/v1/messages?request_id=78e87745e1a902aa033d376d0afbb1ef" \
  -H "Authorization: Bearer $GHALA_KEY"
GET/v1/messagesList messagesmessages:read

GET /v1/messages also filters by status, channel, phone, campaign_id, since and until. To be told of each change instead, use webhooks.

On this page