Methods
List
ListWithContext
Parameters
ListContactsOptions
Optional - Omit for global contacts. Include to list audience-specific contacts.
Maximum number of contacts to return per page
Cursor for pagination - retrieve results after this cursor
Cursor for pagination - retrieve results before this cursor
Response
ListContactsResponse
Object type (“list”)
Array of contact objects. Each contact contains:
id(string): Contact identifieremail(string): Email addressobject(string): Object typefirst_name(string): First namelast_name(string): Last namecreated_at(string): Creation timestampunsubscribed(bool): Unsubscribe statusproperties(map[string]any): Custom properties (global contacts only)
Whether there are more results available for pagination
Examples
List All Global Contacts
List with Pagination
List Audience Contacts
Paginate Through All Contacts
Notes
- Omit
AudienceIdto list global contacts - Include
AudienceIdto list audience-specific contacts - Use
Limit,After, andBeforefor pagination - The
HasMorefield indicates if additional pages are available