Create a notification channel
curl --request POST \ --url https://example.com/api/v1/notification-channels \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "url": "https://example.com" }'Creates a notification channel from a name and HTTPS webhook URL. The provider is detected from the URL, which is validated against private/internal addresses and stored encrypted. Channel names are unique. A Slack or Discord URL is refused while that module is off. Requires the settings.manage permission.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Unique channel name in the workspace.
HTTPS webhook URL of the target channel. Validated against private/internal addresses and stored encrypted; it is never returned by the API.
Example generated
{ "name": "example", "url": "https://example.com"}Responses
Section titled “Responses”Created notification channel.
object
A workspace notification channel (Discord/Slack/generic webhook). The stored URL is encrypted and never returned.
object
True while the module of the channel’s provider (Slack or Discord) is off: nothing is posted to it until an administrator turns the module on.
Chat provider detected from the channel’s webhook URL.
Example
{ "data": { "provider": "discord" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC