PUT
/
v1
/
subscribers
/
{subscriberId}
/
credentials
curl --request PUT \
  --url https://api.novu.co/v1/subscribers/{subscriberId}/credentials \
  --header 'Content-Type: application/json' \
  --data '{
  "credentials": {
    "alertUid": "<string>",
    "channel": "<string>",
    "deviceTokens": [
      "<string>"
    ],
    "externalUrl": "<string>",
    "imageUrl": "<string>",
    "state": "<string>",
    "title": "<string>",
    "webhookUrl": "<string>"
  },
  "integrationIdentifier": "<string>",
  "providerId": "slack"
}'
{
  "data": {
    "__v": 123,
    "_environmentId": "<string>",
    "_id": "<string>",
    "_organizationId": "<string>",
    "avatar": "<string>",
    "channels": [
      {
        "_integrationId": "<string>",
        "credentials": {
          "alertUid": "<string>",
          "channel": "<string>",
          "deviceTokens": [
            "<string>"
          ],
          "externalUrl": "<string>",
          "imageUrl": "<string>",
          "state": "<string>",
          "title": "<string>",
          "webhookUrl": "<string>"
        },
        "integrationIdentifier": "<string>",
        "providerId": "slack"
      }
    ],
    "createdAt": "<string>",
    "deleted": true,
    "email": "<string>",
    "firstName": "<string>",
    "isOnline": true,
    "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

Path Parameters

subscriberId
string
required

Body

application/json
credentials
object
required

Credentials payload for the specified provider

integrationIdentifier
string

The integration identifier

providerId
enum<string>
required

The provider identifier for the credentials

Available options:
slack,
discord,
msteams,
mattermost,
ryver,
zulip,
grafana-on-call,
getstream,
rocket-chat,
fcm,
apns,
expo,
one-signal,
pushpad,
push-webhook,
pusher-beams

Response

200 - application/json
data
object