Authentication
Authenticate a user using EIP712 signature or API key and return access/refresh tokens
Body
methodstring Β· enumRequiredExample:
Authentication method
eip712Possible values: addressstringRequiredExample:
User wallet address
0x1234567890123456789012345678901234567890Pattern: ^0x[a-fA-F0-9]{40}$clientIdstringRequiredExample:
Client identifier
phantom-exchangedetailsone ofRequired
Authentication method specific details
or
Responses
200
Authentication successful
application/json
400
Bad request - invalid input data
401
Unauthorized - authentication failed
post
/auth/loginGenerate EIP712 structured data for client-side signing
Query parameters
addressstringRequiredExample:
User wallet address
0x1234567890123456789012345678901234567890clientIdstringRequiredExample:
Client identifier
phantom-exchangeResponses
200
EIP712 message generated successfully
application/json
400
Bad request - invalid parameters
get
/auth/eip712-messageUse a valid refresh token to obtain a new access token and refresh token
Body
refreshTokenstringRequiredExample:
Refresh token
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...Responses
200
Token refresh successful
application/json
401
Unauthorized - invalid or expired refresh token
post
/auth/refreshLast updated