Javascript
const url = 'https://api.thanks.io/api/v2/mailing-lists/{mailingListId}'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "id": 3020, "user_id": 2, "sub_account_id": null, "type": "manual", "description": "Birthday List", "qrcode_url": null, "total_recipients": 0, "processed": true, "is_suppression_list": false, "total_scans": 0, "unique_scans": 0, "last_scan": null, "total_sends": 0, "last_send": null, "api_key": "167ba7f0-72de-11f0-b054-6d9179a1fdb2", "created_at": "2025-08-06T15:57:43.000000Z", "created_at_diff": "18 minutes ago", "updated_at": "2025-08-06T15:57:43.000000Z" }
Gets a mailing list by ID. Returns a single mailing list object.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of mailing list
56
Successful Response
The response is of type object.
object
Was this page helpful?