Skip to main content

Health Endpoints

GET /health

Check if the authentication service is running and healthy.
Authentication: Not required
Response:
Status Codes:
  • 200 - Service is healthy
  • 500 - Service is unhealthy

Authentication Endpoints

POST /auth/challenge

Generate a unique authentication challenge for wallet signature verification.
Authentication: Not required
Request Body:
Request Parameters: Response:
Response Fields: Status Codes:
  • 200 - Challenge generated successfully
  • 400 - Invalid wallet address or request format
  • 429 - Rate limit exceeded
  • 500 - Internal server error

POST /auth/verify

Verify the signature of a challenge and issue JWT tokens.
Authentication: Not required
Request Body:
Request Parameters: Response:
Response Fields: Status Codes:
  • 200 - Signature verified successfully, tokens issued
  • 400 - Invalid request format
  • 401 - Invalid signature or expired challenge
  • 429 - Rate limit exceeded
  • 500 - Internal server error

POST /auth/refresh

Generate a new access token using a valid refresh token.
Authentication: Not required
Request Body:
Request Parameters: Response:
Status Codes:
  • 200 - Token refreshed successfully
  • 400 - Invalid request format
  • 401 - Invalid or expired refresh token
  • 429 - 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
Response:
Status Codes:
  • 200 - Successfully logged out
  • 401 - Missing or invalid access token
  • 429 - Rate limit exceeded
  • 500 - Internal server error

GET /auth/me

Retrieve information about the authenticated user from their JWT token.
Authentication: Required
Response:
Response Fields: Status Codes:
  • 200 - User information retrieved successfully
  • 401 - Missing or invalid access token
  • 429 - Rate limit exceeded
  • 500 - Internal server error