GET
/
v1
/
subscribers
/
{subscriberId}
import { Novu } from "@novu/node";

const novu = new Novu("<NOVU_SECRET_KEY>");

const response = await novu.subscribers.get("subscriberId");
console.log(response.data);
{
  "data": {
    "_id": "string",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "phone": "string",
    "avatar": "string",
    "locale": "string",
    "subscriberId": "string",
    "channels": [
      {
        "providerId": "slack",
        "integrationIdentifier": "string",
        "credentials": {
          "webhookUrl": "string",
          "channel": "string",
          "deviceTokens": ["string"]
        },
        "_integrationId": "string"
      }
    ],
    "isOnline": "boolean",
    "lastOnlineAt": "string",
    "_organizationId": "string",
    "_environmentId": "string",
    "deleted": "boolean",
    "createdAt": "string",
    "updatedAt": "string",
    "__v": "number"
  }
}

Enter your API key in the Authorization field like the example shown below:

E.g ApiKey 18d2e625f05d80e

import { Novu } from "@novu/node";

const novu = new Novu("<NOVU_SECRET_KEY>");

const response = await novu.subscribers.get("subscriberId");
console.log(response.data);
{
  "data": {
    "_id": "string",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "phone": "string",
    "avatar": "string",
    "locale": "string",
    "subscriberId": "string",
    "channels": [
      {
        "providerId": "slack",
        "integrationIdentifier": "string",
        "credentials": {
          "webhookUrl": "string",
          "channel": "string",
          "deviceTokens": ["string"]
        },
        "_integrationId": "string"
      }
    ],
    "isOnline": "boolean",
    "lastOnlineAt": "string",
    "_organizationId": "string",
    "_environmentId": "string",
    "deleted": "boolean",
    "createdAt": "string",
    "updatedAt": "string",
    "__v": "number"
  }
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

subscriberId
string
required

Query Parameters

includeTopics
string

Includes the topics associated with the subscriber

Response

200 - application/json
data
object