Notifications
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>
Unix timestamp in milliseconds. Only return notifications with timestamp >= this value
1701379983000Maximum number of notifications to return (capped at 50)
20If present (value doesn't matter), only unread notifications are returned
User notifications retrieved successfully
Unauthorized - invalid or missing signed fetch headers
Forbidden - signed fetch metadata validation failed (e.g., request from decentraland-kernel-scene)
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>
Array of notification IDs to mark as read
Notifications marked as read successfully
Number of notifications successfully marked as read
2Bad request - missing or invalid notificationIds array
Unauthorized - invalid or missing signed fetch headers
Forbidden - signed fetch metadata validation failed
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>
Recipient email address
Email subject line
Email body content (HTML)
Optional title for the email template
NewOptional highlighted portion of the title
NotificationEmail sent successfully
Invalid request - missing required fields
Unauthorized - missing or invalid API key
No content
Last updated