Requests

Authentication request management endpoints

Create authentication request

post
/requests

Creates a new authentication request that can be executed by the auth dapp.

Important:

  • For methods other than dcl_personal_sign, the authChain field is required and will be validated.

  • For dcl_personal_sign, the authChain field is optional.

  • Signature validation is performed using @dcl/crypto Authenticator.

  • The request will expire after the configured expiration time (default: 5 minutes).

Body
methodstringRequired

Wallet method to execute (e.g., 'eth_sendTransaction', 'personal_sign', 'dcl_personal_sign')

Example: personal_sign
Responses
post
/requests

Poll for request outcome

get
/requests/{requestId}

Polls for the outcome of an authentication request.

This endpoint can be used as an alternative to WebSocket for receiving request outcomes. The client should poll this endpoint periodically until a result is returned.

Status Codes:

  • 200: Request completed, outcome returned

  • 204: Request not yet completed, continue polling

  • 404: Request not found

  • 410: Request expired

Path parameters
requestIdstring · uuidRequired

Request ID to poll for

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
200

Request completed with outcome

application/json
anyOptional
or
anyOptional
get
/requests/{requestId}

Submit request outcome

post
/v2/requests/{requestId}/outcome

Submits the outcome of a previously created request. If the request originated from a WebSocket client, the server will immediately emit the outcome event to that client and delete the request. Otherwise, the outcome is stored for later retrieval via polling.

Path parameters
requestIdstring · uuidRequired

Request ID to submit outcome for

Body
anyOptional
or
anyOptional
Responses
chevron-right
200

Outcome accepted

No content

post
/v2/requests/{requestId}/outcome

No content

Get request validation status

get
/v2/requests/{requestId}/validation

Returns whether a request requires additional validation.

Path parameters
requestIdstring · uuidRequired

Request ID to check

Responses
chevron-right
200

Validation status

application/json
requiresValidationbooleanRequired

Whether this request requires additional validation

get
/v2/requests/{requestId}/validation

Notify request requires validation

post
/v2/requests/{requestId}/validation

Notifies that the request requires additional user validation (e.g., visual code confirmation). If the requester is connected via WebSocket, the server relays a request-validation-status event to that client.

Path parameters
requestIdstring · uuidRequired

Request ID to notify

Responses
post
/v2/requests/{requestId}/validation

No content

Get request details

get
/v2/requests/{requestId}

Retrieves the details of an authentication request for execution.

This endpoint is used by the auth dapp to recover request information before executing it. The request must exist, not be expired, and pass IP address validation (if applicable).

Path parameters
requestIdstring · uuidRequired

Request ID to retrieve

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
chevron-right
200

Request details retrieved successfully

application/json
expirationstring · date-timeRequired

Request expiration time

codenumberRequired

Request verification code

methodstringRequired

Original method that was requested

senderstringOptional

Sender address derived from auth chain (if applicable)

Example: 0x1234567890123456789012345678901234567890
get
/v2/requests/{requestId}

Last updated