Skip to main content
GET
/
routing-strategies
/
{id}
/
notifications
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});

const associatedNotificationListResponse = await client.routingStrategies.listNotifications('id');

console.log(associatedNotificationListResponse.paging);
{
  "results": [
    {
      "id": "nt_01abc123",
      "name": "Welcome Email",
      "tags": [
        "onboarding"
      ],
      "state": "PUBLISHED",
      "created": 1710000000000,
      "creator": "user_abc",
      "updated": 1710000000000,
      "updater": "user_def"
    }
  ],
  "paging": {
    "cursor": "eyJway...",
    "more": true
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Routing strategy ID (rs_ prefix).

Query Parameters

cursor
string | null

Opaque pagination cursor from a previous response. Omit for the first page.

limit
integer
default:20

Maximum number of results per page. Default 20, max 100.

Required range: 1 <= x <= 100

Response

Associated notification templates retrieved.

Paginated list of notification templates associated with a routing strategy.

paging
Paging · object
required
results
NotificationTemplateSummary · object[]
required