auth

Create Session Endpoint

Create a session by verifying a signed challenge.

The challenge must have been requested within the last 60 seconds and the signature must be valid for the challenge message.

Rate limited to 5 requests per minute per IP to prevent brute force.

post/v1/auth/session

Request body

hotkeystring required

SS58 hotkey address

challengestring required

Challenge that was signed

signaturestring required

Hex-encoded signature

Response

Successful Response

session_tokenstring required

Session token for authenticated requests

expires_atinteger required

Unix timestamp when session expires

rolestring required

User role (miner, validator, admin)

Changes