Atlas
Teams

Teams OAuth callback

Handles the admin consent callback from Azure AD. Saves the tenant authorization and returns HTML on success or failure.

GET
/api/v1/teams/callback

Query Parameters

state*string

CSRF state parameter

tenant?string

Azure AD tenant ID (absent on denial)

admin_consent?string

Whether admin consent was granted

error?string

Error code from Azure AD on denial

error_description?string

Human-readable error from Azure AD

Response Body

text/html

application/json

text/html

application/json

curl -X GET "http://localhost:3001/api/v1/teams/callback?state=string"
"string"
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
"string"
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}