Staff Endpoint
API endpoint to list active staff at a location with names and contact details. Read-only, Enterprise API beta.
Note: API Beta Access, see API Terms of Use
Overview
The Staff API allows Enterprise accounts to retrieve a list of active staff at their business location, including details like name, contact information, and general staff work hours.
Authentication
You must include a valid Authorization header using your SimpleSpa API Key:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonReplace YOUR_API_KEY with your SimpleSpa Enterprise API Key.
Endpoint
POST https://my.simplespa.com/api/v1/staff.phpAuthentication
You must include a valid Authorization header using your SimpleSpa API Key:
Authorization
Bearer YOUR_API_KEY
Content-Type
application/json
Replace YOUR_API_KEY with your SimpleSpa Enterprise API Key.
Request Body
The API expects a JSON body with optional parameters to control pagination and filtering.
Example Request Body
page
integer
No
Page number to retrieve (default = 1)
per_page
integer
No
Number of results per page (maximum 1000)
Example CURL Request
Response Format
The API responds with a JSON object containing the list of staff members and pagination information.
Example Response
Response Fields
success
Always true if the request was successful
staff
List of staff records
staff_id
Unique ID of the staff member
first_name
Staff member’s first name
last_name
Staff member’s last name
Staff member’s email address
phone
Staff member’s phone number
gender
Gender of the staff member (if provided)
color_code
Assigned color code for calendar views
labels
Skills or categories associated with the staff
label_ids
IDs of the labels (category)
working_hours
Weekly working hours array (day: 0 = Monday, 6 = Sunday)
staff_image_url
Public URL of the staff member’s avatar image (if uploaded)
deleted
If true, this staff is currently inactive/deleted
page
Current page number
per_page
Number of results per page
total_results
Total number of staff available
Notes
Working Hours: Only the first time range per day is returned. Days without hours are skipped.
Pagination: Default per_page is 100 if not specified. Maximum allowed is 1000.
Filtering Inactive Staff: Only staff with active = 1 are returned (deleted staff are flagged with "deleted": true).
Rate Limiting: It is recommended to query no faster than once per minute.
⚠️ IMPORTANT: Never expose your private API key in client-side JavaScript. Always use secure, server-side code to handle sensitive credentials.
Last updated