Skip to main content

Nova API — /api/destinations

The operations Nova tags public under /api/destinations. Generated from reference-src/nova-openapi.json.

GET /api/destinations​

Operation id destinations_list: in Python client.call("destinations_list", …), on the command line stardelt api destinations_list.

GET /api/destinations — the caller's groups' destinations, newest first.

The notification destinations of the caller's groups, newest first. ?group=<group> narrows to one group the caller belongs to. Times are epoch milliseconds.

Parameters

NameInTypeRequiredDescription
groupquerystringNoOnly this group's destinations

Responses

CodeDescription
200The caller's groups' destinations
401Not signed in
403The caller is not a member of the requested group
503The state store is not configured

POST /api/destinations​

Operation id destinations_create: in Python client.call("destinations_create", …), on the command line stardelt api destinations_create.

POST /api/destinations — 201 with the stored row.

Create a notification destination for one of the caller's groups. An email destination carries config.recipients (1 to 20 addresses); a webhook destination carries config.url (http or https). Nothing here sends anything. A webhook must be a public address; Nova never follows a redirect.

Request body

FieldTypeRequiredDefaultDescriptionConstraints
configanyYesThe kind's address: {"recipients": [...]} or {"url": "https://…"}.
kindstringYes
namestringYes
owner_groupstringYes
viewersarray of stringNo

Responses

CodeDescription
201The stored row
400The kind, the address, the name or the group is not valid
401Not signed in
403The caller is not a member of the owner group
409A destination with this name already exists in the group
503The state store is not configured

DELETE /api/destinations/{id}​

Operation id destinations_remove: in Python client.call("destinations_remove", …), on the command line stardelt api destinations_remove.

DELETE /api/destinations/{id} — 204; 404 for another group's id or none.

Delete one of the caller's groups' notification destinations.

Parameters

NameInTypeRequiredDescription
idpathintegerYesThe destination's id

Responses

CodeDescription
204Deleted
400The id is not a number
401Not signed in
404No such destination, or it is not the caller's
503The state store is not configured

POST /api/destinations/{id}/test​

Operation id destinations_test: in Python client.call("destinations_test", …), on the command line stardelt api destinations_test.

POST /api/destinations/{id}/test — send one test message to a webhook destination and record the attempt.

Send one test message to a webhook destination and record the attempt. An email destination answers 400 until the platform's SMTP relay exists. The answer never contains the webhook's URL.

Parameters

NameInTypeRequiredDescription
idpathintegerYesThe destination's id

Responses

CodeDescription
200What the attempt did
400An email destination, or a config without a usable url
401Not signed in
404No such destination, or it is not the caller's
503The state store is not configured