API reference

Notifications

12 endpoints under /v1/notifications.

List notifications

get/v1/notifications

Requiresnotifications:read

Query parameters

  • unread_onlybooleanoptional
  • beforestring (date-time)optional
  • kindsstringoptional

    comma-separated kinds

  • proposal_idstring (uuid)optional

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Dismiss

post/v1/notifications/{notification_id}/dismiss

Requiresnotifications:write

Path parameters

  • notification_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Mark read

post/v1/notifications/{notification_id}/read

Requiresnotifications:write

Path parameters

  • notification_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

The caller's alerts for one bid: on/off and which topics interrupt them.

get/v1/notifications/bids/{opportunity_id}

Requiresnotifications:read

Path parameters

  • opportunity_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Save the caller's alerts for one bid.

put/v1/notifications/bids/{opportunity_id}

Idempotent: the body is the whole state.

Requiresnotifications:write

Path parameters

  • opportunity_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional

Request body

  • enabledbooleanrequired
  • topicsstring[]optional

Failures return the error envelope; branch on error_code.

Request
Response

Forget the caller's choice for one bid, so it follows their notification settings again.

delete/v1/notifications/bids/{opportunity_id}

Requiresnotifications:write

Path parameters

  • opportunity_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Get org policies

get/v1/notifications/org-policies

Requiresnotifications:read

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Update org policies

patch/v1/notifications/org-policies

Requiresnotifications:write

Headers

  • X-Organization-IDstringoptional

Request body

  • policiesobject[]required

Failures return the error envelope; branch on error_code.

Request
Response

Get preferences

get/v1/notifications/preferences

Requiresnotifications:read

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Update preferences

patch/v1/notifications/preferences

Requiresnotifications:write

Headers

  • X-Organization-IDstringoptional

Request body

  • kindsobject[]optional
  • settingsobjectoptional

Failures return the error envelope; branch on error_code.

Request
Response

Read all

post/v1/notifications/read-all

Requiresnotifications:write

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Unread count

get/v1/notifications/unread-count

Requiresnotifications:read

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response