Stytch · Schema

api_b2b_session_v1_AuthorizationVerdict

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
authorized boolean Whether the Member 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 Member permission to perform the specified action on the specified Resource.
View JSON Schema on GitHub

JSON Schema

stytch-api-b2b-session-v1-authorizationverdict-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_b2b_session_v1_AuthorizationVerdict",
  "title": "api_b2b_session_v1_AuthorizationVerdict",
  "type": "object",
  "properties": {
    "authorized": {
      "type": "boolean",
      "description": "Whether the Member 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 Member permission to perform the specified action on the specified Resource."
    }
  },
  "required": [
    "authorized",
    "granting_roles"
  ]
}