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

Webhooks API Documentation

Person

Core API resource payload url:

Desk

GET /api/v2/desk/people/:id

See the core api doc

Resource Attributes

data.people[0]
idintegerPerson's ID.
pronounstringPerson's preferred pronouns.
first_namestringPerson's first name.
middle_namestringPerson's middle name.
last_namestringPerson's last name.
namestringPerson's full name.
emailstringPerson's email address. Email address formatting is enforced.
is_memberbooleanWhether person is a member of the business.
addressstringDEPRECATED: Legacy combined address field. Use separate address fields instead.
street_addressstringFirst line of client's physical address.
street_address2stringSecond line of client's physical address (apt, suite, etc).
citystringCity portion of client's address.
state_codestringState/province code (e.g. 'WA', 'BC').
postal_codestringPostal/ZIP code.
country_codestringTwo-letter country code (e.g. 'us', 'ca'). Defaults to business country.
phonestringPerson's phone number.
birthdatedatePerson's date of birth.
guardian_namestringFull name of person's guardian.
guardian_emailstringEmail address of person's guardian.
timezoneintegerTimezone of a person.
business_idintegerID of the business to which a person belongs.
merged_from_idintegerID of the Person that's being merged into this Person. Only appears on the person.updated event when a merge occurs.
merged_into_idintegerID of the Person that this Person will be merged into. Only appears on the person.deleted event when a merge occurs.
updated_attimestampTimestamp for when the person was last updated in the business.
deleted_attimestampTimestamp for when the person was deleted from the business. Null if not deleted.
hidden_attimestampTimestamp for when the person was hidden in the business. Null if not hidden.
joined_attimestampTimestamp for when the person joined the business.
secondary_info_fieldstringClient info that appears below this person's name when listing clients.
primary_staff_memberobject

Optional. Staff information for this person.

idintegerStaff member's person ID.
namestringName of staff member.
locationobject

Optional. Location information for this person.

idintegerThe ID for this location.
nameintegerThe name of this location.
slugintegerThe slug (unique string) for this location.
dependentsarray

Not supported on person.created.

Array of people objects who are managed by the person. Empty if no such people are managed.

idintegerPerson's ID.
pronounstringPerson's preferred pronouns.
first_namestringPerson's first name.
middle_namestringPerson's middle name.
last_namestringPerson's last name.
namestringPerson's full name.
is_memberbooleanWhether person is a member of the business.
emailstringPerson's email address. Email address formatting is enforced.
addressstringPerson's physical address.
phonestringPerson's phone number.
birthdatedatePerson's date of birth.
guardian_namestringFull name of person's guardian.
guardian_emailstringEmail address of person's guardian.
business_idintegerID of the business to which a person belongs.
timezoneintegerTimezone of a person.
updated_attimestampTimestamp for the most recent update of a person.
deleted_attimestampTimestamp for when the person was deleted from the business. Null if not deleted.
hidden_attimestampTimestamp for when the person was hidden in the business. Null if not hidden.
joined_attimestampTimestamp for when the person joined the business.
secondary_info_fieldstringClient info that appears below this person's name when listing clients.
custom_fieldsarray

Array of person_custom_field objects with the following schema:

custom_field_idintegerID of the custom field.
idintegerID of person's custom field response.
namestringName of the custom field.
valuestringValue of the person's custom field response.
providersarray

Not supported on person.created.

Array of people objects who are account managers of the person. Empty if no account managers exist. Same JSON structure as dependents.

profile_photoobject

Not supported on person.created.

Optional. Shows url of profile photo if one is available.

x50stringUrl of profile photo, sized 50x50.
x100stringUrl of profile photo, sized 100x100.
x200stringUrl of profile photo, sized 200x200.
x400stringUrl of profile photo, sized 400x400.

person.created

Triggers when a new person is added to a business.

Payload Example

Person Created Webhook Payload

{
  "topic": "person.created",
  "webhook_id": 1,
  "business_id": 1,
  "data": {
    "people": [
      {
        "id": 10,
        "address": null,
        "birthdate": null,
        "business_id": 1,
        "deleted_at": null,
        "dependents": [],
        "email": null,
        "pronoun": null,
        "first_name": "John",
        "guardian_email": null,
        "guardian_name": "Nathan Doe",
        "hidden_at": null,
        "is_member": false,
        "joined_at": "2019-02-19T23:24:02Z",
        "last_name": "Doe",
        "location": {
          "id": 30742,
          "name": "Example Business",
          "slug": "example-business"
        },
        "middle_name": null,
        "name": "John Doe",
        "phone": "123 456 7890",
        "primary_staff_member": {
          "id": 2,
          "name": "Joseph Cremin"
        },
        "providers": [],
        "secondary_info_field": "No Membership",
        "timezone": "America/Los_Angeles",
        "updated_at": "2019-02-19T23:24:02Z"
      }
    ]
  }
}

person.updated

Triggers when a specific fields of a person are updated.

Also triggers when a provider–dependent relationship is created or removed. In that case, both the provider and the dependent receive a person.updated notification with updated dependents and providers arrays. Subscribing to person.updated is the reliable way to link parent–child relationships after a dependent is added, since person.created for the dependent may fire before the mirror relationship exists.

The specific list of fields that trigger an update are:

Changes to these fields trigger a notification
pronounstringPerson's preferred pronouns.
first_namestringPerson's first name.
middle_namestringPerson's middle name.
last_namestringPerson's last name.
emailstringPerson's email address. Email address formatting is enforced.
addressstringPerson's physical address.
phonestringPerson's phone number.
birthdatedatePerson's date of birth.
guardian_namestringFull name of person's guardian.
guardian_emailstringEmail address of person's guardian.
joined_attimestampTimestamp for when the person joined the business.
merged_from_idintegerID of the Person that's being merged into this Person. Only appears on the person.updated event when a merge occurs.
is_memberbooleanWhether person is a member of the business.
custom_fieldsobject

A notification will be sent whenever an individual person_custom_field object's value changes or is created for the person:

idintegerID of person's custom field response.
valuestringValue of the person's custom field response.

This topic supports previous values within data:

data
peoplearrayArray of one person updated in the business.
previousobject

Previous values of the resource. The following are supported:

pronounstringPerson's preferred pronouns.
first_namestringPerson's first name.
middle_namestringPerson's middle name.
last_namestringPerson's last name.
emailstringPerson's email address. Email address formatting is enforced.
addressstringPerson's physical address.
phonestringPerson's phone number.
birthdatedatePerson's date of birth.
guardian_namestringFull name of person's guardian.
guardian_emailstringEmail address of person's guardian.
is_memberbooleanWhether person is a member of the business.
updated_attimestampTimestamp for when the person was last updated in the business.
hidden_attimestampTimestamp for when the person was hidden in the business. Null if not hidden.
joined_attimestampTimestamp for when the person joined the business.
primary_staff_member_idintegerPerson's staff member id
custom_fieldsobject
idintegerID of person's custom field response.
valuestringValue of the person's custom field response.

Payload Example

Person Updated Webhook Payload

{
  "topic": "person.updated",
  "webhook_id": 10,
  "business_id": 2,
  "data": {
    "people": [
      {
        "id": 3,
        "pronoun": null,
        "first_name": "Jaylon",
        "middle_name": null,
        "last_name": "Murazik",
        "guardian_name": null,
        "name": "Jaylon Murazik",
        "is_member": false,
        "merged_from_id": 9102342,
        "joined_at": "2012-09-03T16:05:00Z",
        "phone": "1-971-448-7713",
        "email": "jaylon.murazik@pike13.com",
        "address": null,
        "secondary_info_field": "No Membership",
        "guardian_email": null,
        "timezone": "America/Los_Angeles",
        "business_id": 2,
        "updated_at": "2012-09-03T16:05:00Z",
        "deleted_at": null,
        "hidden_at": null,
        "birthdate": null,
        "custom_fields": [],
        "dependents": [
          {
            "id": 4,
            "pronoun": null,
            "first_name": "Mckenzie",
            "middle_name": null,
            "last_name": "Jacobson",
            "guardian_name": "Jaylon Murazik",
            "name": "Mckenzie Jacobson",
            "is_member": false,
            "joined_at": "2012-09-03T16:05:00Z",
            "merged_from_id": 186,
            "phone": "133-854-7150",
            "email": "jacobson.mckenzie@pike13.com",
            "address": null,
            "secondary_info_field": "No Membership",
            "guardian_email": "jaylon.murazik@pike13.com",
            "timezone": "America/Los_Angeles",
            "business_id": 2,
            "updated_at": "2012-09-03T16:05:00Z",
            "deleted_at": null,
            "hidden_at": null,
            "birthdate": null,
            "custom_fields": []
          }
        ],
        "providers": []
      }
    ],
    "previous": {
      "first_name": "Foster",
      "updated_at": "2012-09-02T16:05:00Z"
    }
  }
}

person.deleted

Triggers when a person is deleted.

Payload Example

Person Deleted Webhook Payload

{
  "topic": "person.deleted",
  "webhook_id": 10,
  "business_id": 2,
  "data": {
    "people": [
      {
        "id": 9102342,
        "first_name": "John",
        "middle_name": "James",
        "last_name": "Miller",
        "email": "jjmiller@gmail.com",
        "merged_into_id": 3,
        "updated_at": "2019-02-19T23:24:02Z",
        "created_at": "2019-02-19T23:24:02Z",
        "deleted_at": "2020-01-29T11:31:18Z"
      }
    ]
  }
}