Subscribers
Update subscriber credentials
Subscriber credentials associated to the delivery methods such as slack and push tokens.
PUT
/
v1
/
subscribers
/
{subscriberId}
/
credentials
Authorization
Path
Body
curl --request PUT \
--url https://api.novu.co/v1/subscribers/{subscriberId}/credentials \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"credentials": {
"webhookUrl": "<webhookurl>"
},
"providerId": "<providerid>"
}'
{
"data": {
"__v": "number",
"_environmentId": "string",
"_id": "string",
"_organizationId": "string",
"avatar": "string",
"channels": [
{
"_integrationId": "string",
"credentials": {
"channel": "string",
"deviceTokens": [
"string"
],
"webhookUrl": "string"
},
"integrationIdentifier": "string",
"providerId": "slack"
}
],
"createdAt": "string",
"deleted": "boolean",
"email": "string",
"firstName": "string",
"isOnline": "boolean",
"lastName": "string",
"lastOnlineAt": "string",
"locale": "string",
"phone": "string",
"subscriberId": "string",
"updatedAt": "string"
}
}
Enter your API key in the Authorization
field like the example shown below:
E.g ApiKey 18d2e625f05d80e
Authorizations
Authorizationheaderrequired
string
Path Parameters
subscriberIdrequired
string
Body
application/json
credentialsrequired
object
Credentials payload for the specified provider
integrationIdentifier
string
The integration identifier
providerIdrequired
enum<string>
The provider identifier for the credentials
Available options:
slack
, discord
, msteams
, mattermost
, fcm
, apns
, expo
, one-signal
, push-webhook
Response
200 - application/json
data
object
Was this page helpful?
curl --request PUT \
--url https://api.novu.co/v1/subscribers/{subscriberId}/credentials \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"credentials": {
"webhookUrl": "<webhookurl>"
},
"providerId": "<providerid>"
}'
{
"data": {
"__v": "number",
"_environmentId": "string",
"_id": "string",
"_organizationId": "string",
"avatar": "string",
"channels": [
{
"_integrationId": "string",
"credentials": {
"channel": "string",
"deviceTokens": [
"string"
],
"webhookUrl": "string"
},
"integrationIdentifier": "string",
"providerId": "slack"
}
],
"createdAt": "string",
"deleted": "boolean",
"email": "string",
"firstName": "string",
"isOnline": "boolean",
"lastName": "string",
"lastOnlineAt": "string",
"locale": "string",
"phone": "string",
"subscriberId": "string",
"updatedAt": "string"
}
}