Webhooks
A webhook endpoint is a URL that Soosh sends your workspace’s events to. Create endpoints, change them and rotate their signing secrets.
Scopes: webhooks:read to read, webhooks:write to change.
The webhook endpoint object
Section titled “The webhook endpoint object”Attributes
id string · uuid
url string
Where Soosh sends the events.
description string
Up to 500 characters.
events array of strings
Any of message.received message.sent message.status contact.created contact.updated contact.deleted contact.erased template.status chat.assigned chat.closed chat.reopened broadcast.status.
headers object
Custom headers sent with every request, by name. Values are never
returned: each reads ********.
A map; each value is a string. Up to 10 keys.
status string
active; paused while the endpoint keeps failing (Soosh tries
again by itself at paused_until, and events wait meanwhile); or
disabled when it’s turned off.
disabled_reason string · nullable
Why the endpoint is turned off, or null. failing: a day of nothing but failures. no_secret: it has no signing secret. key_revoked, key_expired and key_scopes: the key that made it was revoked, expired or lost a scope. A person turning it off leaves null. Turn it back on with enabled: true: deliveries waiting for less than a day are still sent.
paused_until string · date-time · nullable
When a paused endpoint is tried again; null unless status is paused.
previous_secret_expires_at string · date-time · nullable
During a rotation, when the old secret stops signing; null otherwise.
created_at string · date-time
updated_at string · date-time