Skip to main content
GET
/
journeys
/
{templateId}
/
templates
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 journeyTemplateListResponse = await client.journeys.templates.list('x');

console.log(journeyTemplateListResponse.paging);
{
  "results": [
    {
      "id": "tmpl-1",
      "name": "Welcome email",
      "tags": [],
      "state": "PUBLISHED",
      "created": 1715000000000,
      "creator": "user-1"
    },
    {
      "id": "tmpl-2",
      "name": "Welcome push",
      "tags": [],
      "state": "PUBLISHED",
      "created": 1715000100000,
      "creator": "user-1"
    }
  ],
  "paging": {
    "more": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

templateId
string
required

Journey id

Minimum string length: 1

Query Parameters

cursor
string

Pagination cursor from a prior response.

limit
integer

Page size. Minimum 1, maximum 100.

Required range: 1 <= x <= 100

Response

Notification template list

Paged list of journey-scoped notification templates.

results
object[]
required
paging
Paging · object
required