API Reference
Epilogue Auth API endpoints and responses
Endpoints
Exchange Authorization Code
Exchange the authorization code received from the callback for an access token.
POST https://auth.epilogue.team/api/v1/authorize/{APP_ID}Request Body
{
"authorizationCode": "code-from-callback",
"applicationSecret": "your-app-secret"
}Response
{
"token": "eyJhbGciOiJIUzI1NiIs..."
}Get User Info
Retrieve information about the authenticated user.
GET https://auth.epilogue.team/api/v1/app/meHeaders
Authorization: Bearer {token}
Content-Type: application/jsonResponse
{
"id": "user-id",
"username": "johndoe",
"iconUrl": "https://..."
}Error Response
{
"error": "Invalid token"
}Error Codes
| Status | Description |
|---|---|
| 400 | Bad Request - Missing or invalid parameters |
| 401 | Unauthorized - Invalid or expired token |
| 500 | Internal Server Error |