Authorize a deployment request
Checks whether an inbound request to the calling deployment is allowed by its grants. The messaging container calls it, as does an agent that serves its own web UI. The token identifies the deployment. Identity fields are only returned when the request is allowed.
Authentication
AuthorizationBearer
The deployment’s token, injected into the agent as ASTRO_AUTHZ_TOKEN.
Query parameters
adapter
The adapter handling the request: web, slack, or custom
identity_type
user for a signed-in user, slack for a Slack user, or empty for anonymous
identity_id
The user ID for identity_type; supply it with identity_type
identity_scope
Disambiguates identity_id: the Slack team_id for slack, empty otherwise
Response
OK
allowed
slack_team_id
The Slack workspace ID from the request. Only present when allowed and identity_type is slack.
slack_user_id
The Slack user ID from the request. Only present when allowed and identity_type is slack.
user_id
Resolved platform user ID. Only present when allowed.
Errors
400
Bad Request Error
401
Unauthorized Error