Stytch · Schema

api_session_v1_AuthorizationVerdict

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
authorized boolean Whether the User was authorized to perform the specified action on the specified Resource. Always true if the request succeeds.
granting_roles array The complete list of Roles that gave the User permission to perform the specified action on the specified Resource.
View JSON Schema on GitHub

JSON Schema

stytch-api-session-v1-authorizationverdict-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_session_v1_AuthorizationVerdict",
  "title": "api_session_v1_AuthorizationVerdict",
  "type": "object",
  "properties": {
    "authorized": {
      "type": "boolean",
      "description": "Whether the User was authorized to perform the specified action on the specified Resource. Always true if the request succeeds."
    },
    "granting_roles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The complete list of Roles that gave the User permission to perform the specified action on the specified Resource."
    }
  },
  "required": [
    "authorized",
    "granting_roles"
  ]
}