> ## 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.

# List Associated Notifications

> List notification templates associated with a routing strategy. Includes template metadata only, not full content.



## OpenAPI

````yaml /openapi-specs/openapi.documented.yml get /routing-strategies/{id}/notifications
openapi: 3.0.1
info:
  title: Courier
  description: The Courier REST API for sending and managing notifications across channels.
  version: 0.0.1
servers:
  - url: https://api.courier.com
    description: Production
security: []
paths:
  /routing-strategies/{id}/notifications:
    get:
      tags:
        - Routing Strategies
      summary: List Associated Notifications
      description: >-
        List notification templates associated with a routing strategy. Includes
        template metadata only, not full content.
      operationId: routingStrategies_listNotifications
      parameters:
        - name: id
          in: path
          description: Routing strategy ID (`rs_` prefix).
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          description: >-
            Opaque pagination cursor from a previous response. Omit for the
            first page.
          required: false
          schema:
            type: string
            nullable: true
        - name: limit
          in: query
          description: Maximum number of results per page. Default 20, max 100.
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: Associated notification templates retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssociatedNotificationListResponse'
              examples:
                WithResults:
                  value:
                    results:
                      - id: nt_01kx4h2jdafq8bk9aftxak4b40
                        name: Welcome Email
                        tags:
                          - onboarding
                        state: PUBLISHED
                        created: 1710000000000
                        creator: user_abc
                        updated: 1710000000000
                        updater: user_def
                    paging:
                      cursor: eyJway...
                      more: true
                Empty:
                  value:
                    results: []
                    paging:
                      more: false
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
              examples:
                StrategyNotFound:
                  value:
                    type: invalid_request_error
                    message: Routing strategy rs_01kx4kepxgfq9ty3rersxgwk8x not found
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            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);
        - lang: Python
          source: >-
            import os

            from courier import Courier


            client = Courier(
                api_key=os.environ.get("COURIER_API_KEY"),  # This is the default and can be omitted
            )

            associated_notification_list_response =
            client.routing_strategies.list_notifications(
                id="id",
            )

            print(associated_notification_list_response.paging)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/trycourier/courier-go\"\n\t\"github.com/trycourier/courier-go/option\"\n)\n\nfunc main() {\n\tclient := courier.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tassociatedNotificationListResponse, err := client.RoutingStrategies.ListNotifications(\n\t\tcontext.TODO(),\n\t\t\"id\",\n\t\tcourier.RoutingStrategyListNotificationsParams{},\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", associatedNotificationListResponse.Paging)\n}\n"
        - lang: Java
          source: >-
            package com.courier.example;


            import com.courier.client.CourierClient;

            import com.courier.client.okhttp.CourierOkHttpClient;

            import
            com.courier.models.routingstrategies.AssociatedNotificationListResponse;

            import
            com.courier.models.routingstrategies.RoutingStrategyListNotificationsParams;


            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    CourierClient client = CourierOkHttpClient.fromEnv();

                    AssociatedNotificationListResponse associatedNotificationListResponse = client.routingStrategies().listNotifications("id");
                }
            }
        - lang: Ruby
          source: >-
            require "courier"


            courier = Courier::Client.new(api_key: "My API Key")


            associated_notification_list_response =
            courier.routing_strategies.list_notifications("id")


            puts(associated_notification_list_response)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use Courier\Client;

            use Courier\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('COURIER_API_KEY') ?: 'My API
            Key');


            try {
              $associatedNotificationListResponse = $client
                ->routingStrategies
                ->listNotifications('id', cursor: 'cursor', limit: 1);

              var_dump($associatedNotificationListResponse);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: C#
          source: >-
            using System;

            using TryCourier;

            using TryCourier.Models.RoutingStrategies;


            CourierClient client = new();


            RoutingStrategyListNotificationsParams parameters = new() { ID =
            "id" };


            var associatedNotificationListResponse = await
            client.RoutingStrategies.ListNotifications(parameters);


            Console.WriteLine(associatedNotificationListResponse);
        - lang: CLI
          source: |-
            courier routing-strategies list-notifications \
              --api-key 'My API Key' \
              --id id
components:
  schemas:
    AssociatedNotificationListResponse:
      title: AssociatedNotificationListResponse
      type: object
      description: >-
        Paginated list of notification templates associated with a routing
        strategy.
      properties:
        paging:
          $ref: '#/components/schemas/Paging'
        results:
          type: array
          items:
            $ref: '#/components/schemas/NotificationTemplateSummary'
      required:
        - paging
        - results
    NotFound:
      title: NotFound
      type: object
      properties:
        type:
          type: string
          enum:
            - invalid_request_error
      required:
        - type
      allOf:
        - $ref: '#/components/schemas/BaseError'
    Paging:
      title: Paging
      type: object
      properties:
        cursor:
          type: string
          nullable: true
        more:
          type: boolean
      required:
        - more
    NotificationTemplateSummary:
      title: NotificationTemplateSummary
      type: object
      description: V2 (CDS) template summary returned in list responses.
      properties:
        id:
          type: string
        name:
          type: string
        tags:
          type: array
          items:
            type: string
        state:
          type: string
          enum:
            - DRAFT
            - PUBLISHED
        created:
          type: integer
          format: int64
          description: Epoch milliseconds when the template was created.
        creator:
          type: string
          description: User ID of the creator.
        updated:
          type: integer
          format: int64
          description: Epoch milliseconds of last update.
        updater:
          type: string
          description: User ID of the last updater.
        subscription_topic_id:
          type: string
          description: >-
            The linked subscription (preference) topic of the published version.
            Omitted when no topic is linked or the template has never been
            published.
      required:
        - id
        - name
        - tags
        - state
        - created
        - creator
    BaseError:
      title: BaseError
      type: object
      properties:
        message:
          type: string
          description: A message describing the error that occurred.
      required:
        - message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````