Skip to content
NimbusNexus

Notifications

A notification is an in-app message addressed to one user, for example an invitation to a workspace or the answer to a quota request. Each one has a title and a message, a delivery_status (pending, unread or read), a visual_type (info, system, invite, payment, billing, warning, critical or resize), and optional meta_data about the object it concerns.

GET /api/v1/notifications/list returns the caller's notifications, newest first, with a total and an unread_count. Filter with statuses, workspace_id, meta_data_key and meta_data_value, and page with offset and limit (up to 200). Mark one read with PATCH /api/v1/notifications/, or many at once with PATCH /api/v1/notifications/bulk. DELETE on the same two paths removes them.

For live delivery, open a WebSocket to /api/v1/ws with your session token in the handshake headers. GET /api/v1/notifications/websocket-info describes the connection.

What's next

  • Workspaces — workspace invitations arrive as notifications.
  • Quotas — so do answers to quota requests.
  • Billing — the email addresses that get statements and receipts.

Reference

POST/api/v1/notifications/

Create Notification

Create a new in-app notification addressed to the calling user in the current scope.

Request body

FieldTypeDescription
notification_typeNotificationTypeEnum—
message*string—
delivery_statusDeliveryStatusEnum—
is_email_sentboolean—
title*string—
visual_typeVisualTypeEnum—
has_actionsboolean—
meta_dataobject | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/notifications/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "example",
    "title": "Example"
  }'
PATCH/api/v1/notifications/

Update Notification

Update a single notification (for example to mark it as read) and return the updated record.

Request body

FieldTypeDescription
id*string—
notification_typeNotificationTypeEnum | null—
messagestring | null—
delivery_statusDeliveryStatusEnum | null—
created_atstring | null—
is_email_sentboolean | null—
titlestring | null—
visual_typeVisualTypeEnum | null—
has_actionsboolean | null—
meta_dataobject | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/notifications/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "example"
  }'
DELETE/api/v1/notifications/

Delete Notification

Delete a single notification by ID.

Request body

FieldTypeDescription
id*string—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 404Not Found
  • 422Validation error
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/notifications/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "example"
  }'
PATCH/api/v1/notifications/bulk

Update Notifications Bulk

Update many notifications in a single transaction; reports any IDs that were not found.

Request body

JSON body required.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/notifications/bulk" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "id": "example"
    }
  ]'
DELETE/api/v1/notifications/bulk

Delete Notification Bulk

Delete many notifications in a single transaction; reports any IDs that were not found.

Request body

JSON body required.

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/notifications/bulk" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "id": "example"
    }
  ]'
GET/api/v1/notifications/list

Get Notifications List

List the calling user's notifications with filtering by delivery status, metadata and pagination.

Parameters

NameInTypeDescription
idquerystring | null—
statusesquerystring | null—
notification_typesquerystring | null—
workspace_idquerystring | null—
meta_data_keyquerystring | null—
meta_data_valuequerystring | null—
offsetqueryinteger—
limitqueryinteger—
sort_byquerystring | null—
sort_descqueryboolean—
provide_workspace_idqueryboolean—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 422Validation error
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/notifications/list" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/notifications/managers

Create Notification For Managers

Broadcast a notification to all managers of the targeted scope.

Request body

FieldTypeDescription
project_idstring | null—
workspace_idstring | null—
notification_typeNotificationTypeEnum—
message*string—
delivery_statusDeliveryStatusEnum—
created_atstring—
is_email_sentboolean—
title*string—
visual_typeVisualTypeEnum—
has_actionsboolean—
meta_dataobject | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/notifications/managers" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "example",
    "title": "Example"
  }'
GET/api/v1/notifications/websocket-info

WebSocket connection guide

WebSocket Endpoint

More
    `wss://<host>/api/v1/ws`

    This endpoint establishes a persistent WebSocket connection used to receive real-time notifications.

    ---

    ## Authentication

    Authentication is required.

    JWT token must be provided in **HTTP headers** during the WebSocket handshake:

Responses

  • 200Successful Response
  • 401Unauthorized
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/notifications/websocket-info" \
  -H "Authorization: Bearer $NIMBUS_KEY"

Need to make a real call? Try these endpoints in the live Swagger UI →