Quick links
Chimlet home

Documentation

Chimlet home

Send a notification

Archived preview. Send a message from a script or service to the Inbox of workspace members. This operation is absent from the current backend.

POST/api/v1/notificationsArchived previewJump to request example

Request example

Request
curl --fail-with-body --request POST \
  --url "$CHIMLET_BASE_URL/api/v1/notifications" \
  --header "Authorization: Bearer $CHIMLET_NOTIFY_KEY" \
  --header "Idempotency-Key: $CHIMLET_EVENT_ID" \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "message": "Build complete"
}
JSON

Response example

Response
202 Accepted
{
  "id": "01KJ4CM00R37VJ4C5JJAK3ZMRZ",
  "status": "accepted",
  "accepted_at": "2026-12-01T09:00:00Z",
  "eligible_push_devices": 0
}
Response headers
Headers
Location: /api/v1/notifications/01KJ4CM00R37VJ4C5JJAK3ZMRZ

Authentication

Source-bound notify.send key

Authentication overview

Request fields

Request body

messagestringRequired
1 to 2,048 UTF-8 bytes without NUL characters.
titlestring
At most 160 UTF-8 bytes without NUL characters. Defaults to the source’s name.
urlstring
An HTTP(S) link of at most 2,048 UTF-8 bytes.
silentboolean
Defaults to false. A silent message stays in the Inbox and skips push queuing.
ttl_secondsinteger
Push queue expiry from 60 to 86,400 seconds, defaulting to 3,600. This does not set Inbox retention.
source_idstring
Optional because the key already identifies the source. If supplied, it must match the key’s binding.

Usage notes

  • In the archived backend, create a sending key at POST /api/v1/api-keys with name, source_id, and scopes: ["notify.send"]. This setup requires a workspace owner session authenticated within the last 15 minutes. Save the secret returned at creation.
  • Idempotency-Key is optional. Use a different value for each new event. For 24 hours, the same key and payload for that source return the original receipt without consuming more notification allowance. Changed content with a retained key returns 409.
  • A 202 receipt confirms that the message was saved. It does not confirm phone delivery. eligible_push_devices counts devices queued by the local push simulator and is zero when no push provider is configured.
  • The request does not accept a phone number, recipient selector, or external channel ID. Unknown fields are rejected.
  • If a configured monthly notification allowance is exhausted, the archived preview rejected new sends with HTTP 429. For a positive limit, Retry-After identifies the start of the next UTC month; a zero limit omits that header.