Integrations
Set integration as primary
- API Overview
- API Rate Limiting
Events
Subscribers
Topics
Notification
Workflows
Workflow Overrides
Workflow groups
Integrations
Layouts
Environments
Changes
Execution Details
Feeds
Tenants
Organizations
Messages
Integrations
Set integration as primary
POST
/
v1
/
integrations
/
{integrationId}
/
set-primary
Authorization
string
*
Authorization
Required
string
API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".
integrationId
string
*
integrationId
Required
string
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_SECRET_KEY>');
await novu.integrations.setIntegrationAsPrimary("integrationId")
{
"_id": "string",
"_environmentId": "string",
"_organizationId": "string",
"name": "string",
"identifier": "string",
"providerId": "string",
"channel": "in_app",
"credentials": {
"apiKey": "string",
"user": "string",
"secretKey": "string",
"domain": "string",
"password": "string",
"host": "string",
"port": "string",
"secure": true,
"region": "string",
"accountSid": "string",
"messageProfileId": "string",
"token": "string",
"from": "string",
"senderName": "string",
"projectName": "string",
"applicationId": "string",
"clientId": "string",
"requireTls": true,
"ignoreTls": true,
"tlsOptions": {},
"baseUrl": "string",
"webhookUrl": "string",
"redirectUrl": "string",
"hmac": true,
"serviceAccount": "string",
"ipPoolName": "string"
},
"active": true,
"deleted": true,
"deletedAt": "string",
"deletedBy": "string",
"primary": true
}
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>');
await novu.integrations.setIntegrationAsPrimary("integrationId")
{
"_id": "string",
"_environmentId": "string",
"_organizationId": "string",
"name": "string",
"identifier": "string",
"providerId": "string",
"channel": "in_app",
"credentials": {
"apiKey": "string",
"user": "string",
"secretKey": "string",
"domain": "string",
"password": "string",
"host": "string",
"port": "string",
"secure": true,
"region": "string",
"accountSid": "string",
"messageProfileId": "string",
"token": "string",
"from": "string",
"senderName": "string",
"projectName": "string",
"applicationId": "string",
"clientId": "string",
"requireTls": true,
"ignoreTls": true,
"tlsOptions": {},
"baseUrl": "string",
"webhookUrl": "string",
"redirectUrl": "string",
"hmac": true,
"serviceAccount": "string",
"ipPoolName": "string"
},
"active": true,
"deleted": true,
"deletedAt": "string",
"deletedBy": "string",
"primary": true
}
Authorizations
Authorization
string
headerrequiredAPI key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".
Path Parameters
integrationId
string
requiredResponse
200 - application/json
data
object
data._id
string
data._environmentId
string
requireddata._organizationId
string
requireddata.name
string
requireddata.identifier
string
requireddata.providerId
string
requireddata.channel
enum<string>
requiredAvailable options:
in_app
, email
, sms
, chat
, push
data.credentials
object
requireddata.credentials.apiKey
string
data.credentials.user
string
data.credentials.secretKey
string
data.credentials.domain
string
data.credentials.password
string
data.credentials.host
string
data.credentials.port
string
data.credentials.secure
boolean
data.credentials.region
string
data.credentials.accountSid
string
data.credentials.messageProfileId
string
data.credentials.token
string
data.credentials.from
string
data.credentials.senderName
string
data.credentials.projectName
string
data.credentials.applicationId
string
data.credentials.clientId
string
data.credentials.requireTls
boolean
data.credentials.ignoreTls
boolean
data.credentials.tlsOptions
object
data.credentials.baseUrl
string
data.credentials.webhookUrl
string
data.credentials.redirectUrl
string
data.credentials.hmac
boolean
data.credentials.serviceAccount
string
data.credentials.ipPoolName
string
data.credentials.apiKeyRequestHeader
string
data.credentials.secretKeyRequestHeader
string
data.credentials.idPath
string
data.credentials.datePath
string
data.credentials.apiToken
string
data.credentials.authenticateByToken
boolean
data.credentials.authenticationTokenKey
string
data.credentials.instanceId
string
data.credentials.alertUid
string
data.credentials.title
string
data.credentials.imageUrl
string
data.credentials.state
string
data.credentials.externalLink
string
data.credentials.channelId
string
data.credentials.phoneNumberIdentification
string
data.credentials.accessKey
string
data.active
boolean
requireddata.deleted
boolean
requireddata.deletedAt
string
requireddata.deletedBy
string
requireddata.primary
boolean
requireddata.conditions
object[]
data.conditions.isNegated
boolean
requireddata.conditions.type
enum<string>
requiredAvailable options:
BOOLEAN
, TEXT
, DATE
, NUMBER
, STATEMENT
, LIST
, MULTI_LIST
, GROUP
data.conditions.value
enum<string>
requiredAvailable options:
AND
, OR
data.conditions.children
object[]
requireddata.conditions.children.field
string
requireddata.conditions.children.value
string
requireddata.conditions.children.operator
enum<string>
requiredAvailable options:
LARGER
, SMALLER
, LARGER_EQUAL
, SMALLER_EQUAL
, EQUAL
, NOT_EQUAL
, ALL_IN
, ANY_IN
, NOT_IN
, BETWEEN
, NOT_BETWEEN
, LIKE
, NOT_LIKE
, IN
data.conditions.children.on
enum<string>
requiredAvailable options:
subscriber
, payload
Was this page helpful?
import { Novu } from '@novu/node';
const novu = new Novu('<NOVU_SECRET_KEY>');
await novu.integrations.setIntegrationAsPrimary("integrationId")
{
"_id": "string",
"_environmentId": "string",
"_organizationId": "string",
"name": "string",
"identifier": "string",
"providerId": "string",
"channel": "in_app",
"credentials": {
"apiKey": "string",
"user": "string",
"secretKey": "string",
"domain": "string",
"password": "string",
"host": "string",
"port": "string",
"secure": true,
"region": "string",
"accountSid": "string",
"messageProfileId": "string",
"token": "string",
"from": "string",
"senderName": "string",
"projectName": "string",
"applicationId": "string",
"clientId": "string",
"requireTls": true,
"ignoreTls": true,
"tlsOptions": {},
"baseUrl": "string",
"webhookUrl": "string",
"redirectUrl": "string",
"hmac": true,
"serviceAccount": "string",
"ipPoolName": "string"
},
"active": true,
"deleted": true,
"deletedAt": "string",
"deletedBy": "string",
"primary": true
}