Quick links
Chimlet home

Documentation

Chimlet home

Notifications preview

See how a script or application sends an update to the workspace Inbox in the archived preview.

Preview availability

The current Chimlet backend omits the Notifications API. The request below is for a deployment that includes the archived preview.

In the preview, a script, application, or agent can send an update such as a completed build or a deployment that is ready to review. The update appears in the workspace Inbox.

See a sample Inbox message

Send a sample message

Use the preview deployment’s origin for CHIMLET_BASE_URL and its source-bound key with notify.send for CHIMLET_NOTIFY_KEY. Set CHIMLET_EVENT_ID to a unique value for this event.

Notification preview request
cURL
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

The request requires a message. Add an optional title or url to help readers find the work that produced the update.

Use the same Idempotency-Key and payload when retrying within 24 hours. The preview returns the original receipt.

Confirm the result

In the preview, 202 Accepted confirms the message was saved. Open the workspace Inbox on that deployment to see it. Phone delivery has a separate lifecycle.

Read the archived API reference