Delivery headers
When folk sends a webhook delivery, it will include the following special headers:webhook-id: The unique identifier of the webhook event.webhook-timestamp: The timestamp of the webhook delivery.webhook-signature: The signature used to verify the authenticity of the webhook delivery. For more information, see validating webhook deliveries.
Payload format
folk webhooks send a thin payload with only the necessary information to identify the resource that the event occurred on, and based on the event type, it can optionally include the attributes that changed. The payload of the webhook delivery is a JSON object that will always contain the following fields:string
required
The unique identifier of the webhook event.
string
required
The event type that occurred.
string
required
The date and time the event occurred, in ISO 8601 format.
string
required
The API URL of the webhook that delivered the event.
object
required
The data of the webhook delivery. It contains the properties that help identify the resource that the event occurred on.
Delivery example
Delivery example
Event list
Person events
person.created
person.created
This event occurs when a person is created in the workspace.Example:
person.updated
person.updated
This event occurs when a person’s native attributes or custom fields are updated.Example:
The
description value is never included in the payload.person.deleted
person.deleted
This event occurs when a person is deleted from the workspace.Example:
person.groups_updated
person.groups_updated
This event occurs when a person’s groups are updated.Example:
person.workspace_interaction_metadata_updated
person.workspace_interaction_metadata_updated
This event occurs when a person’s workspace interaction metadata is updated.Example:
Company events
company.created
company.created
This event occurs when a company is created in the workspace.Example:
company.updated
company.updated
This event occurs when a company’s native attributes or custom fields are updated.Example:
The
description value is never included in the payload.company.deleted
company.deleted
This event occurs when a company is deleted from the workspace.Example:
company.groups_updated
company.groups_updated
This event occurs when a company’s groups are updated.Example:
Object events
Object events are sent for objects of every type, such as deals. Their payloads carry nogroupId or objectType field: read them from data.url, which has the form https://api.folk.app/v1/groups/{groupId}/{objectType}/{objectId}. Unlike people and companies, the custom field change paths of an object have no group ID, as in ["customFieldValues", "Status"]. See Custom objects.
object.created
object.created
This event occurs when an object is created in the workspace.Example:
object.updated
object.updated
This event occurs when an object is updated in the workspace.Example:
object.deleted
object.deleted
This event occurs when an object is deleted from the workspace.Example:
Note events
note.created
note.created
This event occurs when a note is created in the workspace.Example:
note.updated
note.updated
This event occurs when a note is updated in the workspace.Example:
The
content value is never included in the payload.note.deleted
note.deleted
This event occurs when a note is deleted from the workspace.Example:
Task events
Events of a private task are only sent to webhooks created by the task’s
owner, the same user who can read it through the Tasks
API. Events of a public task are sent to
every webhook subscribed to the event. When a task becomes private, webhooks
created by other users stop receiving its events, including the
task.updated event for that change.task.created
task.created
This event occurs when a task is created in the workspace, including the next occurrence of a recurring task when the current one is marked as done.Example:
task.updated
task.updated
This event occurs when a task is updated in the workspace. The
changes can include title, description, dueAt, dueTime, recurrenceFrequency, isPublic, assignedUsers, entity.id and completedAt.Marking a task as to do triggers this event with completedAt set to null. Marking a task as done triggers task.completed instead.Example:task.completed
task.completed
This event occurs when a task is marked as done in the workspace.Example:
task.deleted
task.deleted
This event occurs when a task is deleted from the workspace, including when the person, company or object it is linked to is deleted.Example:
Reminder events (deprecated)
reminder.created
reminder.created
This event occurs when a reminder is created in the workspace.Example:
reminder.updated
reminder.updated
This event occurs when a reminder is updated in the workspace.Example:
reminder.deleted
reminder.deleted
This event occurs when a reminder is deleted from the workspace.Example:
reminder.triggered
reminder.triggered
This event occurs when a reminder is triggered in the workspace.Example:
Person enrichment events
person_enrichment.finished
person_enrichment.finished
This event occurs once per enrichment, when it is over: its status becomes
completed or failed. Enrichments requested through the API and enrichments started from the folk app both trigger it.The payload doesn’t include the result for each person: get the enrichment from data.url with Get an enrichment of people to read its items and summary.The changes always include:status:completedorfailed.errorReason: why the enrichment failed, ornullif it completed.finishedAt: when the enrichment completed or failed.
Filtering events
Through the API, it is also possible to add filters to events in order to narrow down the notifications you receive. Filters allow you to achieve advanced workflow capabilities, such as:- Only receive notifications when a person is added to a specific group.
- Only receive notifications when a company is moved to a specific pipeline status.
- Only receive notifications when a deal from a specific group is updated.