Search customers by email, phone, or name
GET /customers/search
Routes on the shape of q when by is omitted: contains ”@” → email; else normalizes to a phone digit count → phone; otherwise → name. Requires a secret key.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The programme to act in: its handle (for example vv) or its lower-case id. Optional on a workspace with one programme; on a workspace with several, a call that names none is refused with 400 program_required. A programme that is not this workspace’s is 404 not_found.
The programme to act in: its handle (for example vv) or its lower-case id. Optional on a workspace with one programme; on a workspace with several, a call that names none is refused with 400 program_required. A programme that is not this workspace’s is 404 not_found.
Responses
Section titled “ Responses ”Matches for the resolved field.
object
object
Q is missing, or by/limit is out of range, or the program is malformed (not a lower-case programme id or a programme handle), or a workspace with several programmes was given none (program_required).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210Missing or invalid API key or OAuth credential.
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The credential lacks the loyalty:read scope — a publishable key (publishable_key_forbidden).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The program names no programme of this workspace (not_found).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210