Notifications

User notification retrieval and management (Inbox service)

Get user notifications

get
/notifications

Retrieves paginated notifications for the authenticated user, including both user-specific and broadcast notifications. The user's address is extracted from the signed fetch authentication chain.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware implementing Decentraland's ADR-44.

Requirements:

  • Authentication chain headers: x-identity, x-signature, x-timestamp
  • Token expiration: 5 minutes
  • Metadata validation: Rejects requests with signer: "decentraland-kernel-scene"
  • The user's Ethereum address is extracted from the auth chain

Example:

Authorization: Bearer <signed-fetch-token>
x-identity: <auth-chain-json>
x-signature: <signature>
x-timestamp: <timestamp>
Query parameters
fromintegerOptional

Unix timestamp in milliseconds. Only return notifications with timestamp >= this value

Example: 1701379983000
limitinteger · min: 1 · max: 50Optional

Maximum number of notifications to return (capped at 50)

Default: 20
onlyUnreadbooleanOptional

If present (value doesn't matter), only unread notifications are returned

Responses
chevron-right
200

User notifications retrieved successfully

application/json
get
/notifications

Mark notifications as read

put
/notifications/read

Marks specified notifications as read for the authenticated user. This operation is irreversible. The user's address is extracted from the signed fetch authentication chain.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware implementing Decentraland's ADR-44.

Requirements:

  • Authentication chain headers: x-identity, x-signature, x-timestamp
  • Token expiration: 5 minutes
  • Metadata validation: Rejects requests with signer: "decentraland-kernel-scene"
  • The user's Ethereum address is extracted from the auth chain

Example:

Authorization: Bearer <signed-fetch-token>
x-identity: <auth-chain-json>
x-signature: <signature>
x-timestamp: <timestamp>
Body
notificationIdsstring · uuid[] · min: 1Required

Array of notification IDs to mark as read

Responses
chevron-right
200

Notifications marked as read successfully

application/json
updatedintegerRequired

Number of notifications successfully marked as read

Example: 2
put
/notifications/read

Send common email notification

post
/notifications/email

Sends a generic email notification using a common template. Used by internal services to send custom email notifications. Available only in the Inbox service.

Authorizations
AuthorizationstringRequired

Bearer token authentication using a shared API key (NOTIFICATION_SERVICE_TOKEN). Used for service-to-service communication and external notification publishing.

Example:

Authorization: Bearer <api-key>
Body
emailstring · emailRequired

Recipient email address

subjectstringRequired

Email subject line

contentstringRequired

Email body content (HTML)

titlestringOptional

Optional title for the email template

Default: New
titleHighlightstringOptional

Optional highlighted portion of the title

Default: Notification
Responses
post
/notifications/email

No content

Last updated