Saltar al contenido
NimbusNexus

Notificaciones

Una notificación es un mensaje en la app dirigido a un solo usuario, por ejemplo una invitación a un workspace o la respuesta a una solicitud de cuota. Cada una tiene un title y un message, un delivery_status (pending, unread o read), un visual_type (info, system, invite, payment, billing, warning, critical o resize) y, de forma opcional, meta_data sobre el objeto al que se refiere.

GET /api/v1/notifications/list devuelve las notificaciones de quien llama, de la más reciente a la más antigua, con un total y un unread_count. Filtra con statuses, workspace_id, meta_data_key y meta_data_value, y pagina con offset y limit (hasta 200). Marca una como leída con PATCH /api/v1/notifications/, o varias a la vez con PATCH /api/v1/notifications/bulk. DELETE en esas mismas dos rutas las borra.

Para la entrega en directo, abre un WebSocket a /api/v1/ws con tu token de sesión en las cabeceras del handshake. GET /api/v1/notifications/websocket-info describe la conexión.

Próximos pasos

  • Workspaces — las invitaciones a un workspace llegan como notificaciones.
  • Cuotas — también las respuestas a las solicitudes de cuota.
  • Facturación — las direcciones de email que reciben los extractos y los recibos.

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_typeobject—
message*string—
delivery_statusobject—
is_email_sentboolean—
title*string—
visual_typeobject—
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"
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 →