Webhooks
Configure signed webhook deliveries for contacts, conversations, and messages. 8 endpoints in this resource.
Get webhook settings
https://api.flownally.com/v1/webhooksReturns the workspace's webhook settings, including the selected event types and the event types you can subscribe to.
Open as its own pageAuthorization
- webhook:read
- owner
- admin
Read webhook settings.
Responses
- 200Webhook settingsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/webhooks" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"id": "string",
"enabled": true,
"verified": true,
"url": "https://example.com",
"eventTypes": [
"contact.created"
],
"availableEventTypes": [
"contact.created"
],
"createdAt": "2026-04-27T00:00:00.000Z",
"updatedAt": "2026-04-27T00:00:00.000Z"
}Update webhook settings
https://api.flownally.com/v1/webhooksUpdates the workspace's webhook settings. Send only the fields you want to change, and
choose eventTypes from availableEventTypes. Changing url clears verified; deliveries
resume after POST /webhooks:verify succeeds for the new URL.
Authorization
- webhook:update
- owner
- admin
Update webhook settings.
Body parameters
Send a application/json body. The body is required.
- Name
enabled- Type
- boolean
- Name
url- Type
- string
- Name
eventTypes- Type
- array<WebhookEventType>
Responses
- 200Updated webhook settingsapplication/json
- defaultErrorapplication/json
Related schemas
curl -X PATCH "https://api.flownally.com/v1/webhooks" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"url": "https://example.com",
"eventTypes": [
"contact.created"
]
}'{
"id": "string",
"enabled": true,
"verified": true,
"url": "https://example.com",
"eventTypes": [
"contact.created"
],
"availableEventTypes": [
"contact.created"
],
"createdAt": "2026-04-27T00:00:00.000Z",
"updatedAt": "2026-04-27T00:00:00.000Z"
}Delete webhook settings
https://api.flownally.com/v1/webhooksRemoves the workspace's webhook settings and stops deliveries. Delivery attempts stay listed in GET /webhooks/attempts until they are 7 days old.
Authorization
- webhook:delete
- owner
- admin
Delete webhook settings.
Responses
- 204Webhook settings deleted
- defaultErrorapplication/json
Related schemas
curl -X DELETE "https://api.flownally.com/v1/webhooks" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"Verify webhook delivery
https://api.flownally.com/v1/webhooks:verifySends a signed webhook.test event to url, or to the saved webhook URL when url is
omitted. A 2xx response from the saved URL marks the webhook verified, which deliveries
require.
Authorization
- webhook:update
- owner
- admin
Verify webhook delivery.
Body parameters
Send a application/json body. The body is optional.
- Name
url- Type
- string
Responses
- 200Verification resultapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/webhooks:verify" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'{
"delivered": true,
"statusCode": 0,
"error": "string"
}List webhook delivery attempts
https://api.flownally.com/v1/webhooks/attemptsReturns webhook delivery attempts from the last 7 days, newest first. Use it to debug deliveries; it isn't a long-term audit log.
Open as its own pageAuthorization
- webhook:read
- owner
- admin
List webhook delivery attempts.
Parameters
- Name
pageSize- Type
- query · integer
Values above 100 are reduced to 100; 0 or omitted uses the default (50).- Name
pageToken- Type
- query · string
- Name
eventType- Type
- query · WebhookEventName
- Name
status- Type
- query · WebhookAttemptStatus
Responses
- 200Webhook delivery attemptsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/webhooks/attempts" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"webhookAttempts": [
{
"id": "string",
"eventId": "string",
"eventType": {},
"status": "succeeded",
"deliveryId": "string",
"attemptNumber": 0,
"attemptedAt": "2026-04-27T00:00:00.000Z",
"responseStatus": 0,
"responseBody": "string",
"latencyMs": 0,
"errorText": "string",
"signedWithVersions": [
0
]
}
],
"nextPageToken": "string"
}List webhook signing keys
https://api.flownally.com/v1/webhooks/signing-keysReturns the workspace's active signing key and, during a rotation, the expiring one.
The first call in a workspace creates the signing key and returns it once in
plaintextKey. Later calls return metadata only.
Authorization
- webhook:read
- owner
- admin
List webhook signing keys.
Responses
- 200Signing keysapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/webhooks/signing-keys" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"keys": [
{
"id": "string",
"version": 0,
"status": "string",
"createdAt": "2026-04-27T00:00:00.000Z",
"expiresAt": "2026-04-27T00:00:00.000Z",
"last4": "string",
"plaintextKey": "string"
}
]
}Rotate webhook signing key
https://api.flownally.com/v1/webhooks/signing-keys:rotateCreates a new signing key and returns it once in plaintextKey. The previous key becomes
expiring and keeps signing deliveries for 24 hours, so each delivery carries a signature
from both keys. Update your receiver to the new key within that window.
Authorization
- webhook:update
- owner
- admin
Rotate a webhook signing key.
Responses
- 200New signing keyapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/webhooks/signing-keys:rotate" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"key": {
"id": "string",
"version": 0,
"status": "string",
"createdAt": "2026-04-27T00:00:00.000Z",
"expiresAt": "2026-04-27T00:00:00.000Z",
"last4": "string",
"plaintextKey": "string"
}
}Webhook payloads
POST {configured webhook URL}
The request Flownally sends to your webhook endpoint. Return any 2xx status after you
accept an event.
- Delivery is at least once. Deduplicate on the
webhook-idheader, which equals the payloadidand stays the same on every retry of an event. The body is identical on every retry. - Delivery order isn't guaranteed, even within one conversation. For
message.updated, keep the snapshot with the highestmessage.revision. - Each attempt times out after 15 seconds. Any 2xx response acknowledges the event. Redirects aren't followed.
- Timeouts, connection errors, 3xx, 408, 429 and 5xx responses are retried about 30 seconds, 5 minutes and 30 minutes after the first attempt, for 4 attempts in total. Retry times include up to 20% random jitter, and the last retry happens within 30 minutes of the first attempt.
- After a 429, a
Retry-Aftervalue in seconds makes the next attempt wait at least that long. If that is later than 30 minutes after the first attempt, the event isn't retried. - 410 and any other 4xx response stop retries for that event.
- An event that isn't delivered after its last attempt isn't sent again. Flownally never disables the endpoint automatically.
webhook-timestampandwebhook-signatureare generated again for each attempt.GET /webhooks/attemptslists delivery attempts from the last 7 days.- Events are delivered only while the webhook is enabled and verified. Changing
urlclearsverified; deliveries resume afterPOST /webhooks:verifysucceeds for the saved URL. Events from the time in between aren't delivered later.
Authorization
webhook-signatureheader · sent by FlownallyFlownally signs every delivery with your webhook signing key. Verify the signature before you trust the body. Verify webhook signaturesExternal receiver endpoint shape for webhook events.
Parameters
- Name
Webhook-Id- Type
- header · string
- required
Event identifier. Equals the payloadidand stays the same on every retry of the event. Deduplicate deliveries with this value.- Name
Webhook-Timestamp- Type
- header · integer
- required
Unix timestamp in seconds for this delivery attempt; it changes on each retry. Reject stale timestamps to prevent replay.- Name
Webhook-Signature- Type
- header · string
- required
Standard Webhooks signature header, generated for each attempt. Verify it againstwebhook-id,webhook-timestamp, and the exact raw request body.
Request body
Flownally sends a application/json body. The body is required.
Payload variants
- Name
contact.created- Type
- ContactCreatedWebhookEvent
- Name
contact.updated- Type
- ContactUpdatedWebhookEvent
- Name
contact.archived- Type
- ContactArchivedWebhookEvent
- Name
conversation.started- Type
- ConversationStartedWebhookEvent
A session started in a conversation. Sent once per session, when its first customer message or human agent's message arrives. Outbound automated messages (API, journey, campaign or desk) sent while the conversation has no active session start no session; they are delivered without one. A conversation can have many sessions over its lifetime.- Name
conversation.updated- Type
- ConversationUpdatedWebhookEvent
An open session's status or owner changed;changedFieldslists what changed, and changes that aren't visible in the payload (such as team access) send nothing. For example, a chatbot handing a session over to agents sends this event withchangedFields["status", "owner"]andsession.statuspending. Starting and closing a session sendconversation.startedandconversation.closedinstead, sosession.statusis neverclosedhere.- Name
conversation.closed- Type
- ConversationClosedWebhookEvent
A session closed. Sent once for every session that closes. A closed session is never reopened; the next message starts a new session in the same conversation.- Name
message.created- Type
- MessageCreatedWebhookEvent
- Name
message.updated- Type
- MessageUpdatedWebhookEvent
- Name
webhook.test- Type
- WebhookTestEvent
Sent only byPOST /webhooks:verifyto confirm the endpoint. Respond with any2xxstatus. Carries no customer data.
Responses
- 2XXEvent accepted
{
"id": "string",
"type": "contact.created",
"timestamp": "string",
"data": {
"contact": {
"id": "con_d7pibvs6gljrc2pfdc1g",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"name": "Anna Kowalska",
"createdAt": "2026-04-30T09:20:00Z",
"updatedAt": "2026-04-30T10:10:00Z",
"conversations": [
{
"conversationId": "cnv_d7pigoip4tfcdebp5mlg",
"channel": "whatsapp",
"metadata": {
"phone_number": "+48123456789",
"wa_id": "48123456789"
}
}
],
"tagIds": [
"tag_d7pj8kaicb30377174j0"
],
"customFields": {
"cf_d7pgooc1v8t53cs68k5g": "customer",
"cf_d7pgpgin6fdi7ocdmdgg": "Krakow"
},
"archivedAt": null
}
}
}