API reference

Notifications

In-app notifications and per-workspace notification preferences.

In-app notifications and per-workspace notification preferences.

Method Endpoint Summary
GET /v1/workspaces/{ws}/notification-preferences Get your notification preferences for a workspace
PUT /v1/workspaces/{ws}/notification-preferences Set your notification preferences for a workspace
GET /v1/notifications Your notifications
POST /v1/notifications/read Mark notifications read

Get your notification preferences for a workspace#

GET/v1/workspaces/{ws}/notification-preferences

Auth: API key (Authorization: Bearer obx_live_…).

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/notification-preferences" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Set your notification preferences for a workspace#

PUT/v1/workspaces/{ws}/notification-preferences

{in_app, email, slack, digest, muted_types[]}

Auth: API key (Authorization: Bearer obx_live_…).

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Request body

Field Type Description
in_app boolean
email boolean
slack boolean
digest boolean
muted_types array

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X PUT "https://api.outboxer.dev/v1/workspaces/acme/notification-preferences" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "in_app": true,
  "email": true,
  "slack": true,
  "digest": true,
  "muted_types": []
}'

Your notifications#

GET/v1/notifications

?unread=true

Auth: API key (Authorization: Bearer obx_live_…).

Query parameters

Name Required Description
unread no
workspace no

Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/notifications?unread=…" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Mark notifications read#

POST/v1/notifications/read

{ids?: []} — all when omitted.

Auth: API key (Authorization: Bearer obx_live_…).

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Request body

Field Type Description
ids array

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/notifications/read" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"