Stytch · Schema

api_b2b_session_v1_AuthorizationCheck

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
organization_id string Globally unique UUID that identifies a specific Organization. The Organization's ID must match the Member's Organization
resource_id string A unique identifier of the RBAC Resource, provided by the developer and intended to be human-readable. A `resource_id` is not allowed to start with `stytch`, which is a special prefix used for Stytch
action string An action to take on a Resource.
View JSON Schema on GitHub

JSON Schema

stytch-api-b2b-session-v1-authorizationcheck-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_b2b_session_v1_AuthorizationCheck",
  "title": "api_b2b_session_v1_AuthorizationCheck",
  "type": "object",
  "properties": {
    "organization_id": {
      "type": "string",
      "description": "Globally unique UUID that identifies a specific Organization. The Organization's ID must match the Member's Organization"
    },
    "resource_id": {
      "type": "string",
      "description": "A unique identifier of the RBAC Resource, provided by the developer and intended to be human-readable.\n\n  A `resource_id` is not allowed to start with `stytch`, which is a special prefix used for Stytch default Resources with reserved `resource_id`s. These include:\n\n  * `stytch.organization`\n  * `stytch.member`\n  * `stytch.sso`\n  * `stytch.self`\n\n  Check out the [guide on Stytch default Resources](https://stytch.com/docs/b2b/guides/rbac/stytch-default) for a more detailed explanation.\n\n  "
    },
    "action": {
      "type": "string",
      "description": "An action to take on a Resource."
    }
  },
  "required": [
    "organization_id",
    "resource_id",
    "action"
  ]
}