GET
/
v1
/
subscribers
/
{subscriberId}
/
credentials
/
{providerId}
/
oauth
/
callback
import { Novu } from "@novu/api";

const novu = new Novu({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await novu.subscribers.authentication.chatAccessOauthCallBack({
    subscriberId: "<value>",
    providerId: "<value>",
    code: "<value>",
    hmacHash: "<value>",
    environmentId: "<value>",
  });

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

run();
{}

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

E.g ApiKey 18d2e625f05d80e

Authorizations

Authorization
string
header
required

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

Path Parameters

subscriberId
string
required
providerId
string
required

Query Parameters

code
string
required
hmacHash
string
required
environmentId
string
required
integrationIdentifier
string

Response

200
application/json

The response is of type object.

Was this page helpful?