List contact lists
Contact lists of the account, by name, with their IDs.
GET https://cotlet.dev/api/v1/clicksend/contact-lists
read
Returns the lists shown on the Contacts page, 50 to a page; pass next_cursor back as cursor for the next page. query filters by name. list_id goes into the other list tools and into send_sms and create_sms_campaign. ClickSend allows up to 2,000 contact lists, and every contact belongs to exactly one list.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of the list name. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/clicksend/contact-lists \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("clicksend", "list_contact_lists") const result = await cotlet.call('clicksend', 'list_contact_lists'); cotlet call clicksend list_contact_lists Example response
{
"lists": [
{
"list_id": 128734,
"name": "Newsletter subscribers"
},
{
"list_id": 128741,
"name": "Webinar leads"
}
],
"next_cursor": null
}