Skip to main content
POST
/
v1
/
notifications
/
types
/
{event_type}
/
template
/
preview
Render a preview (text + blocks) of candidate-or-effective slots
curl --request POST \
  --url https://api-sandbox.featherhq.com/v1/notifications/types/{event_type}/template/preview \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "slots": {
    "title": "<string>",
    "body": "",
    "fields": [
      {
        "label": "<string>",
        "value": "<string>"
      }
    ],
    "link_text": "<string>",
    "link_url": "<string>"
  },
  "payload": {}
}
'
{
  "text": "<string>",
  "blocks": [
    {}
  ],
  "warnings": [
    "<string>"
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

event_type
string
required

Body

application/json
slots
TemplateSlots · object

The four authorable slots. extra="forbid" so an operator can't smuggle unknown keys past validation (mirrors the catalog's threshold configs).

payload
object

Response

Successful Response

Rendered preview. blocks ARE returned even though v1 delivery is text-only.

text
string
required
blocks
Blocks · object[]
required
warnings
string[]
required