audiences
Get a contact record
Retrieve a specific omni-channel contact in an audience.
get/3.0/audiences/{audience_id}/contacts/{contact_id}
Request
- Base URLhttps://api.mailchimp.com
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://login.mailchimp.com/oauth2/authorizeToken URLhttps://login.mailchimp.com/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
audience_idstring required
The unique ID for the audience.
contact_idstring required
A unique identifier for the contact, which can be a Mailchimp contact ID or a channel hash. A channel hash must follow the format email:[md5_hash] (where the hash is the MD5 of the lowercased email address) or sms:[sha256_hash] (where the hash is the SHA256 of the E.164-formatted phone number).
Query parameters
fieldsstring[]
A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
exclude_fieldsstring[]
A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
Response
Example response
{
"audience_id": "773280e405",
"email_channel": {
"email": "example@freddiemail.com",
"hashed_email": "9115d71ba28088047d342e3bcedacd0f",
"marketing_consent": {
"captured_at": "2024-01-15T10:30:00Z"
}
},
"id": "7CCF816ADF6CE1B11AE09BB024A02B9B",
"language": "en",
"sms_channel": {
"marketing_consent": {
"captured_at": "2024-01-15T10:30:00Z"
},
"sms_phone": "+14045550102",
"hashed_sms_phone": "0572084e1f8288816f02cdb7bd930c62400bc8aef510adfaa9eec2b995fa7609"
},
"status": "active"
}Changes
No recorded changes to this operation across all 1 revision of this API.