Generate a step preview
Changed onGenerates a preview for a specific workflow step by its unique identifier stepId
Request
- Base URLhttps://api.novu.co
- AuthAPI key in header Authorization
Path parameters
Headers
A header for idempotency purposes
Request body
Example request
{
"previewPayload": {
"subscriber": {
"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"
}
}
]
},
"actor": {
"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"
}
}
]
}
}
}Response
Created
Example response
{
"previewPayloadExample": {
"subscriber": {
"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"
}
}
]
},
"actor": {
"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
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 - 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
google-chatenum value to the request property//////////// - info
added the new
photon-imessageenum 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//////////// - 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 - 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
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 - info
removed the
novu-agent-chatenum value from the////////////response property for the response status
- breaking