Users
User management and registration
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
addressstringOptionalPattern:
User's Ethereum address (extracted from signed fetch authentication)
^0x[a-fA-F0-9]{40}$Responses
200
User registered successfully
application/json
okbooleanRequired
Registration success status
400
Bad request - User not subscribed to notifications or missing email
application/json
401
Unauthorized - invalid signed fetch
application/json
403
Forbidden - invalid metadata
application/json
500
Internal server error
application/json
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