Send a notification as a test
curl --request POST \ --url https://example.com/api/v1/notification-rules/test \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "scope": { "id": "example", "type": "WORKSPACE" }, "source": "PM_DIGEST" }'Posts the notification’s real content as of now to the channels its saved rule names: a scheduled report as it would be sent now, an event notification from the most recent event of its kind (a commission problem, which is never stored, from a sample). The post is marked as a test and pings nobody: mentions show on Discord but notify no one, and are left out elsewhere. Nothing else happens: no in-app notification, email or audit entry, and the scheduled send of the day is unaffected. Requires the settings.manage permission.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Which notification a rule configures. GET /notification-rules/sources lists what each one accepts.
Responses
Section titled “Responses”What the test did.
object
SENT: the notification was posted as a test to the rule’s channels. EMPTY: it has no content right now (nothing to report, or no event of its kind yet), so nothing was posted.
object
object
Why there is nothing real to show right now.
Example
{ "data": { "status": "SENT" }}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" }}Invalid input, with field-level messages.
Error envelope with field-level messages.
object
object
Stable machine-readable error code.
Message per offending field; a list item is keyed <field>.<index>.<key>.
object
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