Skip to content
POST /notification-destination

Requires `notification:manage`. `slack` requires `webhook_url`; `email` requires `config.to`. Verify delivery with `POST /notification-destination/{id}/test` before relying on it.

Request Body

configobject

Non-secret settings. to/cc/bcc apply to email; ignored for slack.

bccstring[]
ccstring[]
subject_prefixstring
tostring[]
event_typesstring[]
Possible values:
connection.needs_reauthconnection.disconnectedmember.joinedmember.removedmember.roles_updatedinvite.sentinvite.revokedrole.createdrole.updatedrole.deletedrestriction.updatedconnector.created+ 8 more
is_activeboolean
namestring
typestring

Immutable after creation.

Possible values:
slackemail
webhook_urlstring

Slack incoming-webhook URL. Ignored for type: "email".

Response Body

configobject

Non-secret settings. to/cc/bcc apply to email; ignored for slack.

bccstring[]
ccstring[]
subject_prefixstring
tostring[]
created_atstring · date-time
created_by_user_idstring,null
event_typesstring[]

Fixed catalog of org events this destination is subscribed to.

Possible values:
connection.needs_reauthconnection.disconnectedmember.joinedmember.removedmember.roles_updatedinvite.sentinvite.revokedrole.createdrole.updatedrole.deletedrestriction.updatedconnector.created+ 8 more
idstring

Notification destination id (onfd_…).

is_activeboolean

Paused destinations keep their config but forward nothing.

last_test_atstring,null · date-time
last_test_statusstring,null
Possible values:
okfailednull
namestring
typestring

Immutable after creation.

Possible values:
slackemail
updated_atstring · date-time
curl -X POST 'https://api.elaichi.ai/notification-destination' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"type":"slack","name":"your_name","is_active":true,"config":{},"webhook_url":"your_webhook_url","event_types":[]}'
const body = {
  "type": "slack",
  "name": "your_name",
  "is_active": true,
  "config": {},
  "webhook_url": "your_webhook_url",
  "event_types": []
};

const response = await fetch('https://api.elaichi.ai/notification-destination', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
import os
import requests

url = "https://api.elaichi.ai/notification-destination"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}
payload = {
    "type": "slack",
    "name": "your_name",
    "is_active": True,
    "config": {},
    "webhook_url": "your_webhook_url",
    "event_types": []
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())