Webhooks | Baack docs
Webhooks
How Baack tells your systems about changes, and every subject you can subscribe to. The subjects are generated from the API's OpenAPI specification.
How a webhook works
A subscription watches one subject, such as a task or a content entity, for the events you choose. When a change matches, Baack sends a POST request to the subscription's destination URL. Return a 200 status to confirm you've received it.
- Subscription
- What to watch and where to send it: a subject, an event, a destination URL, how Baack authenticates to it, a limit on events per minute and an expiry time.
- Trigger
- One change that matched: its subject and event, the URN of what changed, when it happened, and the subscriptions and deliveries that followed.
- Event
- The message your endpoint receives: the trigger, the subscription, and a link to the record that changed. It never holds the record's content.
- Delivery
- One attempt to send an event, recorded on its trigger: the attempt number, its status, your HTTP response code, and when it started and ended.
Events
A subscription's event is one of: ALL, CREATE, UPDATE, DELETE
What to expect
- Updating a content item inserts a new draft rather than changing the old value, so an update's webhook gives you the new draft.
- A rendered entity view has no webhook, because it's put together when it's read. Subscribe to the entity and its content items instead.
- An identity's webhook can arrive before its person, and a person's before its name, so don't expect the related records to exist yet.
- When a subscription is disabled, its expiry time is set to now. Subscribe to WEBHOOK_SUBSCRIPTION so that losing one doesn't go unnoticed.
Subjects
Each subject's page has its description, and the fields of the object it's about.
Community
- Group
GROUPWebhook for membership group updates normally used for new group updates or name changes
- Group Membership
GROUP_MEMBERSHIPWebhook for events related to membership of a group for an identity.
- Message Thread
MESSAGE_THREADMessage threads (AKA chat or messaging) events allow your integration to be notified on thread update
- Message Thread Notification
MESSAGE_THREAD_NOTIFICATIONNotification updates webhook with changes (creation / modification) to a single notification
- Thread post
THREAD_POSTWebhook events related to the creation of a message thread (AKA chat or messaging) post.
Company
- Company
COMPANYWebhook for updates to companies e.g. company structures or new customer company creation.
Content
- Boolean Item
BOOLEAN_ITEMWebhook for Boolean (truthy) content items.
- Date Time Item
DATETIME_ITEMWebhook events for date / time (timestamp) content item lifecycle.
- Double Item
DOUBLE_ITEMDouble content item webhook event for floating point value (double precision) representations
- Entity
ENTITYWebhook for updates related to content entities as well as company, membership group and other internal content entities.
- Entity List
ENTITY_LISTWebhook for changes to an entity list e.g. adding a new item to a list (like blogpost listing)
- Image Item
IMAGE_ITEMWebhook events related to updates to an image item associated with an entity.
- JSON Item
JSON_ITEMWebhook for JSON content item updates associated with a content entity
- Latitude / Longitude item
LATLONG_ITEMWebhook events for Latitude / Longitude content items associated with a content entity.
- Link Item
LINK_ITEMWebhook for the link content item type
- Long item
LONG_ITEMWebhook for Long (64 bit signed) integer values updates
- Markdown Item
MARKDOWN_ITEMWebhook event for updates to markdown content items associated with an entity
- Money Item
MONEY_ITEMWebhook event for updates to money items associated with content entities.
- Reference Item
REFERENCE_ITEMWebhook for references from one entities content to another entity
- Template Item
TEMPLATE_ITEMWebhook for updates to template content items associated with an entity
- Text Item
TEXT_ITEMWebhook for text content item updates associated with a content entity.
Customer
- Deal
DEALWebhook for changes to customer deals like deal creation, update or deletion.
- Lead
LEADWebhook for updates related to lead creation and updates.
Identity
- Address
ADDRESSWebhook for events related to an address associated with an identity
- Client Identifier
CLIENT_IDENTIFIERWebhook for identity related arbitrary client identifiers
- Email
EMAILWebhook for events related to identity email addresses
- Identity
IDENTITYWebhook for identity events to listen for updates to identities on the platform.
- Person
PERSONWebhook events for updates to a person associated with an identity.
- Person Name
PERSON_NAMEWebhook for events related to associating a person name with an identity.
- Telephone
TELEPHONEWebhook for events related to association of a telephone number with an identity.
Payment
- Payment Invoice
PAYMENT_INVOICEWebhook for payment / invoice update events like the payment status changes
- Payment Invoice Line
PAYMENT_INVOICE_LINEWebhook for changes to payment invoice line items like creation, ordering or removal.
- Payment Invoice Remittance
PAYMENT_INVOICE_REMITTANCEPayment invoice remittance changes like payment creation
Platform
- API Client
API_CLIENTAPI client webhook allows your integration to monitor when clients are created or updated
- API Client Bearer Token
BEARER_TOKENWebhook for API client bearer token events to monitor API token state.
- OAuth Token
OAUTH_TOKENWebhook for deletion notification for Oauth tokens. The OAuth token endpoint is primarily used for revocation of OAuth tokens for integrations.
- Permission
PERMISSIONWebhook for updates related to permission grants
- Role
ROLEWebhook for updates related to a permission role for Role Based Access Control (RBAC)
Project
- Project
PROJECTWebhook for updates related to projects on the platform
- Task
TASKWebhook for updates related to tasks on the platform
- Workflow
WORKFLOWWebhook updates related to workflows related to projects and tasks.
Webhook
- Webhook Subscription
WEBHOOK_SUBSCRIPTIONWebhook for listening updates related to webhook subscriptions for your company.