Get All Contact API
This API is to get list All Contacts.
Parameters for Update Contact API
Headers Parameters
Parameters | Description |
---|---|
Authorization | Please add provided Bearer token - linked to your Cellcast account. Check here |
Content-Type | application/json |
Request Query Parameters
Name | Example | Description |
---|---|---|
page | 1 | number of page, default value : 1 |
limit | 10 | number of limit data, default value : 1000 |
tag | 675287bc817522401acxxxxx | Tag ID: Use a comma separator to filter by multiple IDs |
list | 675287bc817522401acxxxxx | List ID: Use a comma separator to filter by multiple IDs |
tagName | my-tag | Filter by name of tag |
listName | my-list | Filter by name of list |
Curl Samples
Post https://api.cellcast.com/api/v2/contact
bash
curl --location --request GET 'https://api.cellcast.com/api/v2/contact?tagName=my-tag&listName=my-list&tag=673b085a6a1eaad90a7exxxx&list=672c4fb0f48495f13ae8xxxx&page=1&limit=10' ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_KEY}}' \
'
Replace with the actual API key that you own.
Responses
200 Success
json
{
"message": "Success",
"data": {
"items": [
{
"ID": "672c50531076dc19c768xxxx",
"Number": "403816000",
"First Name": "Cellcast",
"Last Name": "Contact",
"Email": "[email protected]",
"Unsubscribe": false,
"Tags": [
{
"ID": "6705f869596ff04130325xxx",
"Name": "my-tag"
}
],
"Lists": [
{
"ID": "672c4fb0f48495f13ae69xxx",
"Name": "my-list"
}
]
}
],
"next": 2,
"current": 1,
"prev": null
}
}
401 Unauthorized
json
{
"code": 401,
"message": "Token expired",
"stack": "APIError: Token expired ...."
}