For the complete documentation index, see llms.txt. This page is also available as Markdown.

Users

User management and registration

Register user

post
/users

Registers a new user for the credits program. The user must be subscribed to notifications with a valid email. Requires signed fetch authentication with the user's wallet signature.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using @dcl/platform-crypto-middleware (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Body
addressstringOptional

User's Ethereum address (extracted from signed fetch authentication)

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
200

User registered successfully

application/json
okbooleanRequired

Registration success status

post/users
POST /users HTTP/1.1
Host: credits.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55

{
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
}
{
  "ok": true
}

Last updated