Skip to content
DocsWebhook events

Theme

Webhook events

What Nibify posts to your webhook endpoints: message.delivered, message.read, message.answered, message.expired, message.dismissed, message.cancelled.

Each event reaches the webhook endpoints of your project as a signed POST with a JSON body. Answering 2XX means: received. Any other answer is retried. How to check the signature, and what happens when your server does not answer: Webhooks and signatures.

Headers

Headers
FieldDescription
nibify-signaturestring · requiredt=<unix seconds>,v1=<hex>: HMAC-SHA256 of <t>.<raw body>, keyed with the Project’s signing secret.
nibify-event-idstring · requiredThe event’s id, the same on every retry of it.

message.delivered

A Device of the recipient confirmed the push arrived.

Payload

Payload
FieldDescription
idstring · requiredThe event’s id, the same on every retry of it: deduplicate on it.
typestring · requiredWhich of the six events this is. Always message.delivered.
createdAtstring · requiredWhen the event happened. An RFC 3339 timestamp.
dataobject · requiredThe Message, and its two receipts.
data.messageIdstring · requiredThe Message this event is about. For a Request, the same as its requestId.
data.environmentstring · requiredThe Environment the Message was sent into. One of test, live.
data.statusstring or null · requiredThe Request’s status as it stands, or null for a Notification, which has none. One of pending, answered, expired, dismissed, cancelled.
data.deliveredAtstring · requiredWhen a phone of the recipient first confirmed the push arrived. An RFC 3339 timestamp.
data.readAtnull · requiredNot read yet: message.read says when it is.

message.read

The recipient opened the Message.

Payload

Payload
FieldDescription
idstring · requiredThe event’s id, the same on every retry of it: deduplicate on it.
typestring · requiredWhich of the six events this is. Always message.read.
createdAtstring · requiredWhen the event happened. An RFC 3339 timestamp.
dataobject · requiredThe Message, and its two receipts.
data.messageIdstring · requiredThe Message this event is about. For a Request, the same as its requestId.
data.environmentstring · requiredThe Environment the Message was sent into. One of test, live.
data.statusstring or null · requiredThe Request’s status as it stands, or null for a Notification, which has none. One of pending, answered, expired, dismissed, cancelled.
data.deliveredAtstring · requiredWhen a phone of the recipient first confirmed the push arrived. An RFC 3339 timestamp.
data.readAtstring · requiredWhen the person first opened the Message. An RFC 3339 timestamp.

message.answered

The person answered a Request.

Payload

Payload
FieldDescription
idstring · requiredThe event’s id, the same on every retry of it: deduplicate on it.
typestring · requiredWhich of the six events this is. Always message.answered.
createdAtstring · requiredWhen the event happened. An RFC 3339 timestamp.
dataobject · requiredThe Request, as it ended.
data.requestIdstring · requiredThe Request this event is about.
data.statusstring · requiredThe terminal state the Request reached. Always answered.
data.environmentstring · requiredThe Environment the Message was sent into. One of test, live.
data.responseobject · requiredThe person’s answer.
data.response.responseIdstring · requiredThe Response’s id.
data.response.actionNamestring · requiredThe action the person chose.
data.response.sourceComponentIdstring · requiredThe id of the component the person answered with, or notification for a quick action on the push.
data.response.contextobject or null · requiredThe values the action sent back, or null when it sent none.
data.response.clientTimestampstring · requiredWhen the person answered, by the phone’s clock. An RFC 3339 timestamp.
data.response.answeredAtstring · requiredWhen the answer reached Nibify. An RFC 3339 timestamp.

message.expired

A Request reached its expiry unanswered.

Payload

Payload
FieldDescription
idstring · requiredThe event’s id, the same on every retry of it: deduplicate on it.
typestring · requiredWhich of the six events this is. Always message.expired.
createdAtstring · requiredWhen the event happened. An RFC 3339 timestamp.
dataobject · requiredThe Request, as it ended.
data.requestIdstring · requiredThe Request this event is about.
data.statusstring · requiredThe terminal state the Request reached. Always expired.
data.environmentstring · requiredThe Environment the Message was sent into. One of test, live.
data.responsenull · requiredOnly an answered Request has a Response.

message.dismissed

The person declined a Request.

Payload

Payload
FieldDescription
idstring · requiredThe event’s id, the same on every retry of it: deduplicate on it.
typestring · requiredWhich of the six events this is. Always message.dismissed.
createdAtstring · requiredWhen the event happened. An RFC 3339 timestamp.
dataobject · requiredThe Request, as it ended.
data.requestIdstring · requiredThe Request this event is about.
data.statusstring · requiredThe terminal state the Request reached. Always dismissed.
data.environmentstring · requiredThe Environment the Message was sent into. One of test, live.
data.responsenull · requiredOnly an answered Request has a Response.

message.cancelled

The agent cancelled a Request.

Payload

Payload
FieldDescription
idstring · requiredThe event’s id, the same on every retry of it: deduplicate on it.
typestring · requiredWhich of the six events this is. Always message.cancelled.
createdAtstring · requiredWhen the event happened. An RFC 3339 timestamp.
dataobject · requiredThe Request, as it ended.
data.requestIdstring · requiredThe Request this event is about.
data.statusstring · requiredThe terminal state the Request reached. Always cancelled.
data.environmentstring · requiredThe Environment the Message was sent into. One of test, live.
data.responsenull · requiredOnly an answered Request has a Response.