curl --location --request POST '/v2/notifications/opt-in' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "webhook_credit_limit",
"webhook_url": "https://example.com",
"levels": [
50,
70,
80,
90
]
}'
{
"data": {
"notification": {
"type": "webhook_credit_limit",
"contact_point": "https://example.com",
"levels": [
50,
70,
80,
90
]
}
},
"meta": {
"message": "success"
}
}