Skip to main content
ContactsVersion: v3New

Get Contacts By BusinessId

GET/contacts/business/{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 limit and skip, or with startAfter for 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 as id), firstName, lastName, email, phone, assignedTo and startAfter. Other contact fields are not returned.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:contacts.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version. Send v3.

Available optionsv3
Example:v3

Path Parameters

businessIdstringrequired

Business Id

Example:641c094001436dbc2081e642

Query Parameters

limitstring

Maximum number of records per page (up to 100, default 25)

Example:10
locationIdstringrequired

Location Id

Example:5DP4iH6HLkQsiKESj6rh
skipstring

Number of records to skip

Example:10
querystring

Matches the start of the contact's name, company name, email or tag, or of the phone number when the value is a number.

Example:John
startAfterobject

Cursor 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 startAfter is sent, skip is ignored.
Example:eleanor sakai,xurJiljRhcxpwRYXbxUU

Response

Successful response

contactsobject[]

Contacts linked to the business for this page, sorted by name.

countnumber

Total number of contacts that match the request across all pages, not the number of contacts in this page. Not returned by default.

Example:10