Methods
Get
GetWithContext
Parameters
GetContactOptions
string
Optional - Omit for global contacts. Include to retrieve an audience-specific contact.
string
required
The contact ID or email address to retrieve
Response
Contact
string
The unique identifier for the contact
string
The contact’s email address
string
Object type (“contact”)
string
The contact’s first name
string
The contact’s last name
string
Timestamp when the contact was created
bool
Whether the contact has unsubscribed from emails
map[string]any
Custom properties for global contacts. Currently, the API only returns string values.
Examples
Get Global Contact by ID
Get Global Contact by Email
Get Audience Contact
With Context and Properties
Notes
- The
Idfield accepts either a contact ID or email address - Omit
AudienceIdto retrieve global contacts - Include
AudienceIdto retrieve audience-specific contacts