Epilogue Auth Docs

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/me

Headers

Authorization: Bearer {token}
Content-Type: application/json

Response

{
  "id": "user-id",
  "username": "johndoe",
  "iconUrl": "https://..."
}

Error Response

{
  "error": "Invalid token"
}

Error Codes

StatusDescription
400Bad Request - Missing or invalid parameters
401Unauthorized - Invalid or expired token
500Internal Server Error