GET
/
v1
/
topics
/
{topicKey}
import { Novu } from "@novu/api";

const novu = new Novu({
  secretKey: "YOUR_SECRET_KEY_HERE",
});

async function run() {
  const result = await novu.topics.retrieve("<value>");

  // Handle the result
  console.log(result);
}

run();
{
  "_id": "<string>",
  "_organizationId": "<string>",
  "_environmentId": "<string>",
  "key": "<string>",
  "name": "<string>",
  "subscribers": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

idempotency-key
string

A header for idempotency purposes

Path Parameters

topicKey
string
required

The topic key

Response

200
application/json
OK
_organizationId
string
required
_environmentId
string
required
key
string
required
name
string
required
subscribers
string[]
required
_id
string