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

Core API Documentation

Staff Member

A type of person that has additional properties.

Front

No authentication required.

GET /api/v2/front/staff_members

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/staff_members?client_id=XXXXXXXXXXXXXX

RESPONSE
{
  "staff_members": [
    {
      "id": 2,
      "name": "Jane Staff",
      "first_name": "Jane",
      "middle_name": null,
      "last_name": "Staff",
      "bio": "Jane Staff's bio"
    },
    {
      "id": 1,
      "name": "John Staff",
      "first_name": "John",
      "middle_name": null,
      "last_name": "Staff",
      "bio": "John Staff's bio",
      "profile_photo": {
        "x50": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x50.jpg",
        "x100": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x100.jpg",
        "x200": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x200.jpg",
        "x400": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x400.jpg"
      }
    }
  ]
}

Lists all staff members viewable to clients. Does not return staff members that are hidden from clients, deactivated, or archived. Staff member search is not supported yet.

GET /api/v2/front/staff_members/:id

Returns the details of a staff member. Returns HTTP status 404 if the staff member is hidden from clients, deactivated, or archived. Use the Desk API to look up staff members in those states.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/staff_members/1?client_id=XXXXXXXXXXXXXX

RESPONSE
{
  "staff_members": [
    {
      "id": 1,
      "name": "John Staff",
      "first_name": "John",
      "middle_name": null,
      "last_name": "Staff",
      "bio": "John Staff's bio",
      "profile_photo": {
        "x50": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x50.jpg",
        "x100": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x100.jpg",
        "x200": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x200.jpg",
        "x400": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x400.jpg"
      }
    }
  ]
}

Desk

Every staff member returned by the Desk API carries a status attribute with one of three values:

  • active. The staff member can sign in and work as normal.
  • deactivated. A reversible pause. The staff member can no longer access the business and receives no notifications from it, but keeps their assignments on scheduled events.
  • archived. The staff member no longer works at the business. Archived staff members are listed after everyone else.

GET /api/v2/desk/staff_members

Lists all staff members in every status, with archived staff members last. To list only some statuses, pass one or more statuses[] values, for example ?statuses[]=active&statuses[]=deactivated. Unrecognized values are ignored, so a request with no recognized status returns an empty list.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/staff_members \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX"

RESPONSE
{
  "staff_members": [
    {
      "id": 2,
      "name": "Jane Staff",
      "first_name": "Jane",
      "middle_name": null,
      "last_name": "Staff",
      "phone": "555-555-5555",
      "email": "janestaff@example.com",
      "role": "owner",
      "status": "active",
      "bio": "Jane Staff's bio",
      "custom_fields": [
        {
          "id": 100,
          "custom_field_id": 5,
          "name": "Favorite Color",
          "value": [
            "blue",
            "red"
          ]
        },
        {
          "id": 101,
          "custom_field_id": 7,
          "name": "Are you a robot?",
          "value": true
        }
      ]
    },
    {
      "id": 1,
      "name": "John Staff",
      "first_name": "John",
      "middle_name": null,
      "last_name": "Staff",
      "phone": "555-555-5555",
      "email": "johnstaff@example.com",
      "role": "staff_member",
      "status": "active",
      "bio": "John Staff's bio",
      "profile_photo": {
        "x50": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x50.jpg",
        "x100": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x100.jpg",
        "x200": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x200.jpg",
        "x400": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x400.jpg"
      }
    }
  ]
}

GET /api/v2/desk/staff_members/:id
GET /api/v2/desk/staff_members/me

Returns the details of a staff member in any status. The string "me" can be used in place of the id parameter to simply fetch the profile associated with the current access token.

Show curl example

REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/staff_members/1 \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX"

RESPONSE
{
  "staff_members": [
    {
      "id": 1,
      "name": "John Staff",
      "first_name": "John",
      "middle_name": null,
      "last_name": "Staff",
      "phone": "555-555-5555",
      "email": "johnstaff@example.com",
      "role": "staff_member",
      "status": "active",
      "bio": "John Staff's bio",
      "profile_photo": {
        "x50": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x50.jpg",
        "x100": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x100.jpg",
        "x200": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x200.jpg",
        "x400": "https://d1nqv8xdwxria6.cloudfront.net/uploads/profile_photo/image/f1150c38-5e62-4c4b-a701-473e3f586e1e/image_profile_x400.jpg"
      }
    }
  ]
}

POST /api/v2/desk/staff_members

Creates a staff member. Requires manager level access or higher.

Note: Staff members created through the API are always given the Limited Staff role. The role cannot be chosen on creation and cannot be changed through the API. To grant a higher role, edit the staff member in Pike13 after creating them.

Note: The single 'address' field is deprecated. Please use the separate address fields (street_address, city, etc) instead.

Attributes

first_namestringRequired. Staff member's first name.
last_namestringRequired. Staff member's last name.
emailstringRequired. Staff member's email address. Email address formatting is enforced, and the address must be unique within the business.
middle_namestringStaff member's middle name.
pronounstringStaff member's preferred pronouns.
phonestringStaff member's phone number.
birthdatedateStaff member's date of birth.
biostringStaff member's biography, shown to clients.
timezonestringStaff member's timezone.
show_to_clientsbooleanWhether the staff member is visible to clients.
skip_new_client_passesbooleanDo not issue any complimentary passes to the staff member.
location_idintegerLocation ID for the staff member's home location.
street_addressstringStreet address.
street_address2stringSecond line of the street address.
citystringCity.
state_codestringState or province code.
postal_codestringPostal code.
country_codestringAlpha-2 country code from the ISO 3166-1 standard.
send_invitationbooleanOptional, defaults to false. When true, emails the staff member a link to set a password and claim their account.
custom_fieldscollection

Collection of custom field IDs and values.

idintegerCustom field ID
valuestringValue of the custom field

Show curl example

REQUEST
$ curl -X POST https://mybiz.pike13.com/api/v2/desk/staff_members \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX" \
  -H "Content-Type: application/json" \
  -d '{
    "staff_member": {
      "first_name": "Jane",
      "last_name": "Staff",
      "email": "janestaff@example.com",
      "phone": "555-555-5555",
      "bio": "Jane Staff's bio",
      "send_invitation": true
    }
  }'

RESPONSE
{
  "staff_members": [
    {
      "id": 3,
      "name": "Jane Staff",
      "first_name": "Jane",
      "middle_name": null,
      "last_name": "Staff",
      "phone": "555-555-5555",
      "email": "janestaff@example.com",
      "role": "limited_staff_member",
      "status": "active",
      "location_id": 1,
      "bio": "Jane Staff's bio",
      "commissionable": false,
      "deleted_at": null,
      "hidden_at": null,
      "custom_fields": []
    }
  ]
}

PUT /api/v2/desk/staff_members/:id

Updates a staff member. Requires manager level access or higher.

Partial update via strong parameters: only keys present under staff_member are applied; omitted keys do not clear unrelated columns. Permitted attributes are the same as create, except send_invitation which is create-only.

Note: The staff member's role cannot be changed through the API. A staff_member_role key in the request body is ignored.

Show curl example

REQUEST
$ curl -X PUT https://mybiz.pike13.com/api/v2/desk/staff_members/1 \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX" \
  -H "Content-Type: application/json" \
  -d '{"staff_member":{"bio": "An updated bio", "custom_fields": [{"id": 9, "value": "blue"}]}}'

RESPONSE
{
  "staff_members": [
    {
      "id": 3,
      "name": "Jane Staff",
      "first_name": "Jane",
      "middle_name": null,
      "last_name": "Staff",
      "phone": "555-555-5555",
      "email": "janestaff@example.com",
      "role": "limited_staff_member",
      "status": "active",
      "location_id": 1,
      "bio": "An updated bio",
      "commissionable": false,
      "deleted_at": null,
      "hidden_at": null,
      "custom_fields": [
        {
          "id": 100,
          "custom_field_id": 9,
          "name": "Favorite Color",
          "value": "blue"
        }
      ]
    }
  ]
}

Change a staff member's status by sending status with one of active, deactivated, or archived. It can be combined with other attributes in the same request. Deactivating or archiving cuts off the staff member's access and notifications, but they keep their assignments on scheduled events, so reassign any upcoming events separately. Sending active restores access from either status.

Note: A staff member cannot change their own status, and the primary owner's status cannot be changed at all. Either attempt, or an unknown status, returns HTTP status 422 and applies none of the request's changes. Sending the staff member's current status changes nothing.

Show curl example

REQUEST
$ curl -X PUT https://mybiz.pike13.com/api/v2/desk/staff_members/3 \
  -H "Authorization: Bearer XXXXXXXXXXXXXXX" \
  -H "Content-Type: application/json" \
  -d '{"staff_member":{"status": "active"}}'

RESPONSE
{
  "staff_members": [
    {
      "id": 3,
      "name": "Jane Staff",
      "first_name": "Jane",
      "middle_name": null,
      "last_name": "Staff",
      "phone": "555-555-5555",
      "email": "janestaff@example.com",
      "role": "limited_staff_member",
      "status": "active",
      "location_id": 1,
      "bio": "Jane Staff's bio",
      "commissionable": false,
      "deleted_at": null,
      "hidden_at": null,
      "custom_fields": []
    }
  ]
}