Upsert provider credentials
Changed onUpsert credentials for a provider such as slack and FCM. providerId is required field. This API creates deviceTokens or appends to the existing ones.
Request
- Base URLhttps://api.novu.co
- AuthAPI key in header Authorization
Path parameters
Headers
A header for idempotency purposes
Request body
Example request
{
"credentials": {
"webhookUrl": "https://example.com/webhook",
"channel": "general",
"deviceTokens": [
"token1",
"token2",
"token3"
],
"alertUid": "12345-abcde",
"title": "Critical Alert",
"imageUrl": "https://example.com/image.png",
"state": "resolved",
"externalUrl": "https://example.com/details"
}
}Response
OK
Example response
{
"channels": [
{
"credentials": {
"webhookUrl": "https://example.com/webhook",
"channel": "general",
"deviceTokens": [
"token1",
"token2",
"token3"
],
"alertUid": "12345-abcde",
"title": "Critical Alert",
"imageUrl": "https://example.com/image.png",
"state": "resolved",
"externalUrl": "https://example.com/details"
}
}
]
}Changes
- warning
added the new
google-chatenum value to the//response property for the response status - warning
added the new
photon-imessageenum value to the//response property for the response status - info
added the new
google-chatenum value to the request property - info
added the new
photon-imessageenum value to the request property
- warning
- breaking
removed the enum value
novu-agent-chatof the request property - warning
added the new
novu-web-chatenum value to the//response property for the response status - info
added the new
novu-web-chatenum value to the request property - info
removed the
novu-agent-chatenum value from the//response property for the response status
- breaking