Get Contacts By BusinessId
Returns the contacts in a location that are linked to a business. Results are sorted by contact name (A to Z), then by contact identifier.
- Page through results with
limitandskip, or withstartAfterfor large result sets. query: Matches the start of the contact's name, company name, email or tag, or of the phone number when the value is a number.- Users who can see only their assigned contacts get only contacts assigned to them or that they follow.
- Each contact includes
id,_id(the same value asid),firstName,lastName,email,phone,assignedToandstartAfter. Other contact fields are not returned.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
contacts. readonlyOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API Version. Send v3.
v3v3Path Parameters
Business Id
641c094001436dbc2081e642Query Parameters
Maximum number of records per page (up to 100, default 25)
10Location Id
5DP4iH6HLkQsiKESj6rhNumber of records to skip
10Matches the start of the contact's name, company name, email or tag, or of the phone number when the value is a number.
JohnCursor for the next page. Copy the startAfter value of the last contact in the previous response. It holds two values: the contact's indexed name and its contact identifier.
- Send it as one comma-separated string (
startAfter=eleanor sakai,xurJiljRhcxpwRYXbxUU) or as the parameter repeated twice (startAfter=eleanor sakai&startAfter=xurJiljRhcxpwRYXbxUU). - Use the repeated form when the name contains a comma.
- When
startAfteris sent,skipis ignored.
eleanor sakai,xurJiljRhcxpwRYXbxUUResponse
Successful response
Contacts linked to the business for this page, sorted by name.
Total number of contacts that match the request across all pages, not the number of contacts in this page. Not returned by default.
10