List channel connections

Retrieve all channel connections for a resource.

GET
/v1/channel-connections

Authorization

Authorization<token>

API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

In: header

Query Parameters

afterstring

Cursor for pagination indicating the starting point after which to fetch results.

beforestring

Cursor for pagination indicating the ending point before which to fetch results.

limitnumber

Limit the number of items to return (max 100)

Maximum: 100
orderDirectionstring

Direction of sorting

Value in: "ASC" | "DESC"
orderBystring

Field to order by

includeCursorboolean

Include cursor item in response

subscriberIdstring

The subscriber ID to filter results by

channelstring

Filter by channel type (email, sms, push, chat, etc.).

Value in: "in_app" | "email" | "sms" | "chat" | "push"
providerIdstring

Filter by provider identifier (e.g., sendgrid, twilio, slack, etc.).

Value in: "emailjs" | "mailgun" | "mailjet" | "mandrill" | "nodemailer" | "postmark" | "sendgrid" | "sendinblue" | "ses" | "netcore" | "infobip-email" | "resend" | "plunk" | "mailersend" | "mailtrap" | "clickatell" | "outlook365" | "novu-email" | "sparkpost" | "email-webhook" | "braze" | "nexmo" | "plivo" | "sms77" | "sms-central" | "sns" | "telnyx" | "twilio" | "gupshup" | "firetext" | "infobip-sms" | "burst-sms" | "bulk-sms" | "isend-sms" | "forty-six-elks" | "kannel" | "maqsam" | "termii" | "africas-talking" | "novu-sms" | "sendchamp" | "generic-sms" | "clicksend" | "bandwidth" | "messagebird" | "simpletexting" | "azure-sms" | "ring-central" | "brevo-sms" | "eazy-sms" | "mobishastra" | "afro-message" | "unifonic" | "smsmode" | "imedia" | "sinch" | "isendpro-sms" | "fcm" | "apns" | "expo" | "one-signal" | "pushpad" | "push-webhook" | "pusher-beams" | "appio" | "novu" | "slack" | "discord" | "msteams" | "mattermost" | "ryver" | "zulip" | "grafana-on-call" | "getstream" | "rocket-chat" | "whatsapp-business" | "chat-webhook" | "novu-slack"
integrationIdentifierstring

Filter by integration identifier.

contextKeysarray<string>

Filter by exact context keys, order insensitive (format: "type:id")

Header Parameters

idempotency-keystring

A header for idempotency purposes

Response Body

OK

dataRequiredarray<object>

List of returned Channel Connections

nextRequiredstring | null

The cursor for the next page of results, or null if there are no more pages.

previousRequiredstring | null

The cursor for the previous page of results, or null if this is the first page.

totalCountRequirednumber

The total count of items (up to 50,000)

totalCountCappedRequiredboolean

Whether there are more than 50,000 results available

export interface Response {
  /**
   * List of returned Channel Connections
   */
  data: GetChannelConnectionResponseDto[];
  /**
   * The cursor for the next page of results, or null if there are no more pages.
   */
  next: string | null;
  /**
   * The cursor for the previous page of results, or null if this is the first page.
   */
  previous: string | null;
  /**
   * The total count of items (up to 50,000)
   */
  totalCount: number;
  /**
   * Whether there are more than 50,000 results available
   */
  totalCountCapped: boolean;
}
export interface GetChannelConnectionResponseDto {
  /**
   * The unique identifier of the channel endpoint.
   */
  identifier: string;
  /**
   * The channel type (email, sms, push, chat, etc.).
   */
  channel: ("in_app" | "email" | "sms" | "chat" | "push") | null;
  /**
   * The provider identifier (e.g., sendgrid, twilio, slack, etc.).
   */
  providerId:
    | (
        | "emailjs"
        | "mailgun"
        | "mailjet"
        | "mandrill"
        | "nodemailer"
        | "postmark"
        | "sendgrid"
        | "sendinblue"
        | "ses"
        | "netcore"
        | "infobip-email"
        | "resend"
        | "plunk"
        | "mailersend"
        | "mailtrap"
        | "clickatell"
        | "outlook365"
        | "novu-email"
        | "sparkpost"
        | "email-webhook"
        | "braze"
        | "nexmo"
        | "plivo"
        | "sms77"
        | "sms-central"
        | "sns"
        | "telnyx"
        | "twilio"
        | "gupshup"
        | "firetext"
        | "infobip-sms"
        | "burst-sms"
        | "bulk-sms"
        | "isend-sms"
        | "forty-six-elks"
        | "kannel"
        | "maqsam"
        | "termii"
        | "africas-talking"
        | "novu-sms"
        | "sendchamp"
        | "generic-sms"
        | "clicksend"
        | "bandwidth"
        | "messagebird"
        | "simpletexting"
        | "azure-sms"
        | "ring-central"
        | "brevo-sms"
        | "eazy-sms"
        | "mobishastra"
        | "afro-message"
        | "unifonic"
        | "smsmode"
        | "imedia"
        | "sinch"
        | "isendpro-sms"
        | "fcm"
        | "apns"
        | "expo"
        | "one-signal"
        | "pushpad"
        | "push-webhook"
        | "pusher-beams"
        | "appio"
        | "novu"
        | "slack"
        | "discord"
        | "msteams"
        | "mattermost"
        | "ryver"
        | "zulip"
        | "grafana-on-call"
        | "getstream"
        | "rocket-chat"
        | "whatsapp-business"
        | "chat-webhook"
        | "novu-slack"
      )
    | null;
  /**
   * The identifier of the integration to use for this channel endpoint.
   */
  integrationIdentifier: string | null;
  /**
   * The subscriber ID to which the channel connection is linked
   */
  subscriberId: string | null;
  /**
   * The context of the channel connection
   */
  contextKeys: string[];
  workspace: WorkspaceDto;
  auth: AuthDto;
  /**
   * The timestamp indicating when the channel endpoint was created, in ISO 8601 format.
   */
  createdAt: string;
  /**
   * The timestamp indicating when the channel endpoint was last updated, in ISO 8601 format.
   */
  updatedAt: string;
}
export interface WorkspaceDto {
  id: string;
  name?: string;
}
export interface AuthDto {
  accessToken: string;
}
 
curl -X GET "https://api.novu.co/v1/channel-connections?after=string&before=string&limit=10&orderDirection=ASC&orderBy=string&includeCursor=true&subscriberId=subscriber-123&channel=chat&providerId=slack&integrationIdentifier=slack-prod&contextKeys=tenant%3Aorg-123&contextKeys=region%3Aus-east-1" \
  -H "idempotency-key: string" \
  -H "Authorization: <token>"
{
  "data": [
    {
      "identifier": "string",
      "channel": "in_app",
      "providerId": "slack",
      "integrationIdentifier": "slack-prod",
      "subscriberId": "subscriber-123",
      "contextKeys": [
        "tenant:org-123",
        "region:us-east-1"
      ],
      "workspace": {
        "id": "T123456",
        "name": "Acme HQ"
      },
      "auth": {
        "accessToken": "Workspace access token"
      },
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "next": "string",
  "previous": "string",
  "totalCount": 0,
  "totalCountCapped": true
}

On this page

No Headings
Edit this page on GitHub