Skip to main content
GET
/
profiles
/
{user_id}
/
lists
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const list = await client.profiles.lists.retrieve('user_id');

console.log(list.paging);
{
  "paging": {
    "cursor": "<string>",
    "more": true
  },
  "results": [
    {
      "id": "<string>",
      "name": "<string>",
      "created": "<string>",
      "updated": "<string>",
      "preferences": {
        "categories": {},
        "notifications": {}
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

A unique identifier representing the user associated with the requested user profile.

Query Parameters

cursor
string | null

A unique identifier that allows for fetching the next set of message statuses.

Response

paging
object
required
results
GetListSubscriptionsItem · object[]
required

An array of lists