API Reference: Authentication Endpoints
Complete API reference for authentication endpoints including request/response formats

Complete reference for authentication API endpoints with request/response formats and examples.
POST /auth/token
Exchange credentials for access token.
Request:
{
"grant_type": "password",
"username": "user@example.com",
"password": "secure123",
"scope": "openid profile email"
}
Response:
{
"access_token": "eyJhbG...",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "8xLOx...",
"scope": "openid profile email"
}
POST /auth/refresh
Refresh access token using refresh token.
Headers:
Authorization: Bearer <refresh_token>
Response:
{
"access_token": "eyJhbG...",
"expires_in": 3600
}
See error codes section for detailed error responses.