Authentication API Reference¶
Complete API reference for authentication endpoints.
POST /auth/login¶
Authenticate user and create session.
Request¶
{
"identifier": "[email protected]",
"secret": "password123",
"register": false // Optional: auto-register if true
}
Response¶
{
"access_token": "eyJhbGc...",
"refresh_token": "eyJhbGc...",
"token_type": "Bearer",
"expires_in": 3600,
"user": {
"id": "user:abc123",
"identifiers": [...],
"roles": ["editor"]
}
}
POST /auth/refresh¶
Refresh access token.
Request¶
Response¶
POST /auth/logout¶
End session.
Request¶
Response¶
GET /me¶
Get current user information.