Core API Documentation
Staff Member
A type of person that has additional properties.
Front
No authentication required.
GET /api/v2/front/staff_members
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.
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
-
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
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
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
Note: The single 'address' field is deprecated. Please use the separate address fields (street_address, city, etc) instead.
Attributes
| first_name | string | Required. Staff member's first name. | ||||||
|---|---|---|---|---|---|---|---|---|
| last_name | string | Required. Staff member's last name. | ||||||
| string | Required. Staff member's email address. Email address formatting is enforced, and the address must be unique within the business. | |||||||
| middle_name | string | Staff member's middle name. | ||||||
| pronoun | string | Staff member's preferred pronouns. | ||||||
| phone | string | Staff member's phone number. | ||||||
| birthdate | date | Staff member's date of birth. | ||||||
| bio | string | Staff member's biography, shown to clients. | ||||||
| timezone | string | Staff member's timezone. | ||||||
| show_to_clients | boolean | Whether the staff member is visible to clients. | ||||||
| skip_new_client_passes | boolean | Do not issue any complimentary passes to the staff member. | ||||||
| location_id | integer | Location ID for the staff member's home location. | ||||||
| street_address | string | Street address. | ||||||
| street_address2 | string | Second line of the street address. | ||||||
| city | string | City. | ||||||
| state_code | string | State or province code. | ||||||
| postal_code | string | Postal code. | ||||||
| country_code | string | Alpha-2 country code from the ISO 3166-1 standard. | ||||||
| send_invitation | boolean | Optional, defaults to | ||||||
| custom_fields | collection | Collection of custom field IDs and values.
|
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
Note:
The staff member's role cannot be changed through the API. A
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
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.
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": []
}
]
}