Client Endpoint
Clients API access is read-only
Overview
The Clients API endpoint allows you to fetch client records from your SimpleSpa account, with powerful filtering options.
Enterprise Feature: This API access is only available to Enterprise accounts.
You can search, filter by dates, and filter by number of completed visits, allowing highly targeted client lists for marketing campaigns, automations, and integrations.
Compatible with:
Zapier
Make.com (Integromat)
Integrately
Direct API access (CURL, Postman)
Endpoint
Authentication
You must include a valid Authorization header using your SimpleSpa API Key:
Replace YOUR_API_KEY with your SimpleSpa Enterprise API Key.
Request Method
POST with JSON body
or GET with URL parameters (Zapier/Make.com friendly)
Request Parameters
Parameter
Type
Description
page
integer
Page number (default 1
)
per_page
integer
Results per page (max 1000
)
search
string
Search by first name, last name, email, or mobile
created_before
date (YYYY-MM-DD
)
Clients created before this date
created_after
date (YYYY-MM-DD
)
Clients created after this date
first_visit_before
date (YYYY-MM-DD
)
First visit before this date
first_visit_after
date (YYYY-MM-DD
)
First visit after this date
last_visit_before
date (YYYY-MM-DD
)
Last visit before this date
last_visit_after
date (YYYY-MM-DD
)
Last visit after this date
min_completed_visits
integer
Clients with at least X visits
max_completed_visits
integer
Clients with no more than X visits
birthday_month
integer (1-12)
Clients with a birthday in this month
birthday_day
integer (1-31)
Clients born on this day of month
Example CURL Request
Example GET Request (Zapier/Make.com Friendly)
Response Format
The API responds with a JSON object containing the results and pagination information.
Example Response
Example: Birthday Search
Get all clients born in July:
Get all clients born on July 15:
Response Format
Other Examples
We Miss You Campaign
Haven’t visited since April 30, 2024
And don’t have a future appointment
Returns the first 100 results (use page: 2 to paginate)
POST
GET
Response Fields
Field
Description
client_id
Unique ID
firstname
Client’s first name
lastname
Client’s last name
Client’s email address
mobile
Client’s mobile number
dob_year
Client's birthday year
dob_month
Client's birthday month
dob_day
Client's birthday day
created
When client record was created
first_visit
First appointment date
last_visit
Last appointment date
next_visit
Next booked appointment
completed_visits
Number of completed appointments
Ideas for Marketing or Automation
Build Birthday Campaigns (clients with upcoming birthdays)
Send Loyalty Rewards (clients with
completed_visits >= 10
)Remind inactive clients (e.g., "last_visit_before": "2023-01-01")
Create birthday campaigns (extend API with birthday field if needed)
Target VIP clients who spend more frequently
Export segmented client lists to Mailchimp or any email platform
Trigger SMS via Twilio for last-minute promos
Notes
Important: for polling-based setup, all new records will be fetched together, which could lead to duplication unless filtered appropriately, please keep a record of those that have been contacted if you are using this for notifications
dob_year
,dob_month
, anddob_day
are separate fields.Search Behavior: The search field performs a partial match across first name, last name, email, and mobile phone.
Dates must be in
YYYY-MM-DD
format.Pagination: Default per_page is 100 if not specified. Maximum allowed is 1000 per page.
Rate Limiting: Please ensure reasonable usage to avoid throttling. It is recommended to poll no faster than once per minute.
Last updated