List Contact Profiles

API Details

  • Returns contact profiles matching the supplied identifiers and optional trait filters. Must include at least one of the following identifiers, but can also include multiple: phone, email, externalId, profileId
  • For filtering by optIn status, filter with true, false, or the sentinel null (e.g. optIn.voice.subscribed=null) when there is no status.
  • Can filter top-level traits like firstName, subBrand, etc., or traits nested in Custom Properties and Regal Voice Properties. Datatypes that can be filtered include: strings, numbers, bools, and traits nested in objects (e.g. customProperties.address.zipcode). Cannot filter arrays.
  • If your identity resolution settings allow for "shared phones" and/or "shared emails", the API can return multiple matching profiles for a given phone/email, including when the phone/email is listed as a secondary phone/email on a profile.
    • To only return matching profiles where the phone/email is the primary, add a contactPhone/contactEmail filter. Those represent only the primary phone/email. For example, https://api.regal.ai/v1/contactProfiles?phone=%2B19545555555&contactPhone=%2B19545555555 only returns profiles where +19545555555 is the primary phone number.
  • In query strings, encode phone + as %2B (an unencoded + becomes a space and fails E.164 validation).
  • Email identifiers are matched case-insensitively (normalized to lowercase before lookup).

Example requests

Retrieve contact profiles by phone number

GET /v1/contactProfiles?phone=%2B19545555555

Retrieve contact profiles by email for a given subBrand

GET /v1/contactProfiles?email=alex.rivera%40example.com&subBrand=north

Retrieve contact profiles by phone that are subscribed

GET /v1/contactProfiles?phone=%2B19545555555&optIn.voice.subscribed=true

Retrieve contact profiles by externalId and a birthdate

GET /v1/contactProfiles?externalId=crm-lead-1001&customProperties.address.birthdate=1985-01-21

Retrieve contact profiles that match two identifiers and a given Regal property

GET /v1/contactProfiles?externalId=crm-lead-1001&phone=%2B19545555555&rvProperties.contact_owner_email=agent%40example.com

Retrieve contact profiles by primary phone only

GET /v1/contactProfiles?phone=%2B19545555555&contactPhone=%2B19545555555

Rate Limit

Limit TypeValue
Requests per second10

If you exceed this limit, you will receive a 429 Rate Limit Exceeded response.

Query Params
string

Pagination cursor from a previous response's nextCursor.

string
length ≥ 1

Phone number validated and normalized to E.164

string

Email address. Matched case-insensitively; normalized to lowercase.

string
length ≥ 1
string

Regal profile id. Accepts the undashed 32-hex form from the profile URL (e.g. 550e8400e29b41d4a716446655440000) or a standard dashed UUID (e.g. 550e8400-e29b-41d4-a716-446655440000).

string

Filter by first name. Optional trait filter; AND-combined with other filters.

string

Filter by last name. Optional trait filter; AND-combined with other filters.

Filter by primary phone (normalized to E.164), or "null" (no primary phone). Optional trait filter; AND-combined with other filters.

string

Filter by contact email, or "null" (no value). Optional trait filter; AND-combined with other filters.

string

Filter by sub-brand slug. Optional trait filter; AND-combined with other filters.

string

Filter by voice opt-in: "true", "false", or "null" (no status).

string

Filter by SMS opt-in: "true", "false", or "null" (no status).

string

Filter by email opt-in: "true", "false", or "null" (no status).

string

Example custom property filter using dotted notation. Replace customTrait with any customProperties path (e.g. customProperties.address.zipcode). Strings, numbers, bools, and nested objects are supported; arrays are not.

string

Example Regal Voice property filter using dotted notation. Replace rvTrait with any rvProperties path (e.g. rvProperties.contact_owner_email).

integer
1 to 20
Defaults to 20

Maximum number of items to return per page. Defaults to 20, capped at 20.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json