Lists
Get a contact's lists
<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Lists/getListsOfContact" target="_blank">Try in sandbox</a><br>Get all the lists in which a contact is included.
get/api/v2/contacts/{id}/lists
Request
- Base URLhttps://rest.textmagic.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Query parameters
pageinteger
Fetch specified results page.
limitinteger
The number of results per page.
Response
Returned when successful.
Example response
{
"page": 1,
"pageCount": 10,
"limit": 10,
"resources": [
{
"id": 715,
"name": "Private list",
"description": "Private contacts of C. R. Conway",
"membersCount": 332,
"user": {
"id": 305,
"displayTimeFormat": "24h",
"username": "charles.conway",
"firstName": "Charles",
"lastName": "Conway",
"email": "charles@example.com",
"status": "A",
"balance": 208.64,
"phone": "447860021130",
"company": "Example Ltd.",
"currency": {
"id": "GBP",
"unicodeSymbol": "£",
"htmlSymbol": "£"
},
"country": {
"id": "US",
"name": "India"
},
"timezone": {
"id": 55,
"area": "Europe",
"dst": 1,
"offset": 10800,
"timezone": "Europe\\/Tallinn"
},
"subaccountType": "P",
"emailAccepted": true,
"phoneAccepted": true,
"avatar": {
"href": "avatars/lav5d8de21d89971646555094.png"
}
},
"avatar": {
"href": "avatars/lav5d8de21d89971646555094.png"
}
}
]
}Changes
No recorded changes to this operation across all 4 revisions of this API.