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
get
/requests/{requestId}

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
get
/v2/requests/{requestId}

Last updated