I've figured out that you can do this using the attributes/search route in th REST API.
Using this method, you can retrieve any Attribute from any Attribute Set in your Contact Model. Very handy.
In the example below, I'm retrieving the Email Address from all Subscribers and the Mobile Number from the MobileConnect list. Note that Contacts
is the Data Extension name used in my Population and Contact Key
is the field value in that Data Extension (linked to the Contact Record).
You also can include other key
name/value pairs in the attributes array to retrieve field values from other Data Extensions used in your Contact Model.
POST https://www.exacttargetapis.com/contacts/v1/attributes/search
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"request": {
"attributes": [{
"key": "Email Addresses.Email Address"
},
{
"key": "MobileConnect Demographics.Mobile Number"
}]
},
"conditionSet": {
"operator": "And",
"conditionSets": [],
"conditions": [{
"attribute": {
"key": "Contacts.Contact Key"
},
"operator": "Equals",
"value": {
"items": ["643268b7-0d37-9aff-3685-1eb068d21b5e"]
}
}]
}
}