Body
Required
-
channel
string Required Values are
email
,web_push
, orsms
. -
subject
string Required Minimum length is
4
, maximum length is100
. -
body
object Required -
recipients
array[object] Required
POST
/api/notifications
curl \
-X POST https://metropolitanabolivia.org/api/notifications \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"channel":"email","subject":"string","body":{"html":"string","text":"string"},"recipients":[{"email":"string","matches":"string"}]}'
Request example
{
"channel": "email",
"subject": "string",
"body": {
"html": "string",
"text": "string"
},
"recipients": [
{
"email": "string",
"matches": "string"
}
]
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}