Pike13 For Developers
Get Started
Authentication
Core API
Reporting API
Webhooks API
Announcements

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]
idintegerID of the note.
notetextThe content of the note.
subjectstringThe subject/title of the note.
publicbooleanWhether the note is visible to clients. Default: false.
pinnedbooleanWhether the note is pinned for easy access. Default: false.
notable_idintegerID of the associated object (Person or EventOccurrence).
notable_typestringType of the associated object ('Person' or 'EventOccurrence').
business_idintegerID of the business this note belongs to.
created_by_idintegerID of the person who created this note.
updated_by_idintegerID of the account who last updated this note.
created_attimestampTimestamp for when the note was created.
updated_attimestampTimestamp for when the note was last updated.
created_byobject

Optional. Information about the staff member who created the note.

idintegerPerson's ID.
namestringPerson's full name.
emailstringPerson's email address.
updated_byobject

Optional. Information about the staff member who last updated the note.

idintegerID of the account
namestringPerson's full name.
emailstringPerson's email address.
personobject

Present when notable_type is 'Person'. Information about the person this note is attached to.

idintegerPerson's ID.
namestringPerson's full name.
emailstringPerson's email address.
event_occurrenceobject

Present when notable_type is 'EventOccurrence'. Information about the event occurrence this note is attached to.

idintegerEvent occurrence ID.
namestringName of the event.
start_attimestampStart time of the event occurrence.
end_attimestampEnd time of the event occurrence.
event_idintegerID of the parent event.
service_idintegerID of the service.
service_typestringType of service (e.g., 'GroupClass', 'Appointment').

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 notable_type:

  • 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
notetextThe content of the note.
subjectstringThe subject/title of the note.
publicbooleanWhether the note is visible to clients.
pinnedbooleanWhether the note is pinned.
notable_idintegerID of the associated object.
notable_typestringType of the associated object.
updated_by_idintegerID of the account who last updated the note.

This topic supports previous values within data:

data
notesarrayArray of one note updated.
previousobject

Previous values of the resource. The following are supported:

notetextPrevious content of the note.
subjectstringPrevious subject/title of the note.
publicbooleanPrevious public visibility setting.
pinnedbooleanPrevious pinned setting.
notable_idintegerPrevious associated object ID.
notable_typestringPrevious associated object type.
updated_by_idintegerPrevious updated_by_id (account ID) before the change.
updated_attimestampPrevious update timestamp.

Payload Example

Note Updated Webhook Payload

{
  "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

Note Deleted Webhook Payload

{
  "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"
      }
    ]
  }
}