Private Messages
Generates a LiveKit token for accessing private messages. This endpoint checks user privacy settings and generates appropriate credentials. Requires Signed Fetch authentication from dcl:explorer. Must include the complete identity header chain: x-identity-auth-chain-0, x-identity-auth-chain-1, x-identity-auth-chain-2, x-identity-timestamp, and x-identity-metadata.
Signed Fetch authentication for Explorer-based requests. Requires a chain of identity headers:
- x-identity-auth-chain-0: Signer information
- x-identity-auth-chain-1: Ephemeral key information
- x-identity-auth-chain-2: Signed entity information
- x-identity-timestamp: Request timestamp
- x-identity-metadata: Request metadata Used for authentication from dcl:explorer.
Private messages token generated successfully
LiveKit connection URL for private messages
Unauthorized - Invalid authentication or blacklisted user
Internal server error
GET /private-messages/token HTTP/1.1
Host: comms-gatekeeper.decentraland.org
x-identity: YOUR_API_KEY
Accept: */*
{
"adapter": "text"
}Updates the privacy settings for a user's private messages. This affects who can send private messages to the user. Requires Bearer Token authentication.
Bearer token authentication for service-to-service communication.
ETH address of the user
Privacy setting for private messages
Privacy settings updated successfully
No content
Invalid request - Invalid address or privacy setting
Unauthorized - Invalid token
Internal server error
PATCH /users/{address}/private-messages-privacy HTTP/1.1
Host: comms-gatekeeper.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"private_messages_privacy": "all"
}No content
Last updated