Health Endpoints
GET /health
Check if the authentication service is running and healthy.Authentication: Not required
200- Service is healthy500- Service is unhealthy
Authentication Endpoints
POST /auth/challenge
Generate a unique authentication challenge for wallet signature verification.Authentication: Not required
Response:
Status Codes:
200- Challenge generated successfully400- Invalid wallet address or request format429- Rate limit exceeded500- Internal server error
POST /auth/verify
Verify the signature of a challenge and issue JWT tokens.Authentication: Not required
Response:
Status Codes:
200- Signature verified successfully, tokens issued400- Invalid request format401- Invalid signature or expired challenge429- Rate limit exceeded500- Internal server error
POST /auth/refresh
Generate a new access token using a valid refresh token.Authentication: Not required
Response:
200- Token refreshed successfully400- Invalid request format401- Invalid or expired refresh token429- Rate limit exceeded (20 requests per minute)500- Internal server error
POST /auth/logout
Invalidate the current session by blacklisting it and revoking all associated refresh tokens.Authentication: Required
200- Successfully logged out401- Missing or invalid access token429- Rate limit exceeded500- Internal server error
GET /auth/me
Retrieve information about the authenticated user from their JWT token.Authentication: Required
Status Codes:
200- User information retrieved successfully401- Missing or invalid access token429- Rate limit exceeded500- Internal server error