Webhooks API Documentation
Note
Core API resource payload urls:
Desk
GET /api/v2/desk/event_occurrences/:event_occurrence_id/notes/:id
GET /api/v2/desk/people/:person_id/notes/:id
See the core api doc
Resource Attributes
| data.notes[0] | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | integer | ID of the note. | |||||||||||||||||||||
| note | text | The content of the note. | |||||||||||||||||||||
| subject | string | The subject/title of the note. | |||||||||||||||||||||
| public | boolean | Whether the note is visible to clients. Default: false. | |||||||||||||||||||||
| pinned | boolean | Whether the note is pinned for easy access. Default: false. | |||||||||||||||||||||
| notable_id | integer | ID of the associated object (Person or EventOccurrence). | |||||||||||||||||||||
| notable_type | string | Type of the associated object ('Person' or 'EventOccurrence'). | |||||||||||||||||||||
| business_id | integer | ID of the business this note belongs to. | |||||||||||||||||||||
| created_by_id | integer | ID of the person who created this note. | |||||||||||||||||||||
| updated_by_id | integer | ID of the account who last updated this note. | |||||||||||||||||||||
| created_at | timestamp | Timestamp for when the note was created. | |||||||||||||||||||||
| updated_at | timestamp | Timestamp for when the note was last updated. | |||||||||||||||||||||
| created_by | object | Optional. Information about the staff member who created the note.
| |||||||||||||||||||||
| updated_by | object | Optional. Information about the staff member who last updated the note.
| |||||||||||||||||||||
| person | object | Present when notable_type is 'Person'. Information about the person this note is attached to.
| |||||||||||||||||||||
| event_occurrence | object | Present when notable_type is 'EventOccurrence'. Information about the event occurrence this note is attached to.
| |||||||||||||||||||||
note.created
Triggers whenever a new note is created.
Notes can be attached to either a
Person
or an
EventOccurrence.
The payload includes contextual data based on the
- When attached to a Person, includes a
person object with id, name, and email. - When attached to an EventOccurrence, includes an
event_occurrence object with event details, times, and service information.
Payload Example (Person)
Note Created Webhook Payload (Person)
{
"topic": "note.created",
"business_id": 2,
"webhook_id": 7,
"data": {
"notes": [
{
"id": 456,
"note": "Client mentioned they prefer morning classes",
"subject": "Class Preference",
"public": true,
"pinned": false,
"notable_id": 123,
"notable_type": "Person",
"business_id": 2,
"created_by_id": 45,
"updated_by_id": 45,
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T14:30:00Z",
"created_by": {
"id": 45,
"name": "Sarah Johnson",
"email": "sarah@example.com"
},
"updated_by": {
"id": 45,
"name": "Sarah Johnson",
"email": "sarah@example.com"
},
"person": {
"id": 123,
"name": "John Doe",
"email": "john@example.com"
}
}
]
}
}
Payload Example (EventOccurrence)
Note Created Webhook Payload (EventOccurrence)
{
"topic": "note.created",
"business_id": 2,
"webhook_id": 10,
"data": {
"notes": [
{
"id": 890,
"note": "Instructor will arrive 15 minutes early to set up equipment",
"subject": "Class Setup Note",
"public": false,
"pinned": true,
"notable_id": 234,
"notable_type": "EventOccurrence",
"business_id": 2,
"created_by_id": 47,
"updated_by_id": 47,
"created_at": "2024-01-20T08:00:00Z",
"updated_at": "2024-01-20T08:00:00Z",
"created_by": {
"id": 47,
"name": "Emily Davis",
"email": "emily@example.com"
},
"updated_by": {
"id": 47,
"name": "Emily Davis",
"email": "emily@example.com"
},
"event_occurrence": {
"id": 234,
"name": "Morning Yoga",
"start_at": "2024-01-25T09:00:00Z",
"end_at": "2024-01-25T10:00:00Z",
"event_id": 56,
"service_id": 12,
"service_type": "GroupClass"
}
}
]
}
}
note.updated
Triggers when specific fields of a note are updated.
The specific list of fields that trigger an update are:
| Changes to these fields trigger a notification | ||
|---|---|---|
| note | text | The content of the note. |
| subject | string | The subject/title of the note. |
| public | boolean | Whether the note is visible to clients. |
| pinned | boolean | Whether the note is pinned. |
| notable_id | integer | ID of the associated object. |
| notable_type | string | Type of the associated object. |
| updated_by_id | integer | ID of the account who last updated the note. |
This topic supports
| data | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| notes | array | Array of one note updated. | ||||||||||||||||||||||||
| previous | object | Previous values of the resource. The following are supported:
| ||||||||||||||||||||||||
Payload Example
{
"topic": "note.updated",
"business_id": 2,
"webhook_id": 8,
"data": {
"notes": [
{
"id": 456,
"note": "Client prefers morning classes and needs wheelchair access",
"subject": "Class Preference - Updated",
"public": true,
"pinned": true,
"notable_id": 123,
"notable_type": "Person",
"business_id": 2,
"created_by_id": 45,
"updated_by_id": 46,
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-16T10:15:00Z",
"created_by": {
"id": 45,
"name": "Sarah Johnson",
"email": "sarah@example.com"
},
"updated_by": {
"id": 46,
"name": "Mike Chen",
"email": "mike@example.com"
},
"person": {
"id": 123,
"name": "John Doe",
"email": "john@example.com"
}
}
],
"previous": {
"note": "Client mentioned they prefer morning classes",
"subject": "Class Preference",
"pinned": false,
"updated_by_id": 45,
"updated_at": "2024-01-15T14:30:00Z"
}
}
}
note.deleted
Triggers whenever a note is deleted.
Payload Example
{
"topic": "note.deleted",
"business_id": 2,
"webhook_id": 9,
"data": {
"notes": [
{
"id": 789,
"note": "Temporary note about class cancellation",
"subject": "Class Cancellation",
"public": false,
"pinned": false,
"notable_id": 234,
"notable_type": "EventOccurrence",
"business_id": 2,
"created_by_id": 45,
"updated_by_id": 45,
"created_at": "2024-01-10T09:00:00Z",
"updated_at": "2024-01-10T09:00:00Z"
}
]
}
}