Skip to main content
GET
/
journeys
/
{templateId}
/
templates
/
{notificationId}
/
versions
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 notificationTemplateVersionListResponse = await client.journeys.templates.listVersions('x', {
  templateId: 'x',
});

console.log(notificationTemplateVersionListResponse.paging);
{
  "versions": [
    {
      "version": "v2",
      "created": 1715000400000,
      "creator": "user-1"
    },
    {
      "version": "v1",
      "created": 1715000200000,
      "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
notificationId
string
required

Notification template id

Minimum string length: 1

Response

Notification template version list

versions
VersionNode · object[]
required
paging
Paging · object
required