Open Enterprise
Browse topics

Data types

These schemas define the fields and values in API requests and responses.

AcceptInvitation
JSON Schema
{
  "type": "object",
  "required": [
    "token"
  ],
  "properties": {
    "token": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
AccessDecision
JSON Schema
{
  "type": "object",
  "required": [
    "allowed",
    "revision",
    "policy_version"
  ],
  "properties": {
    "allowed": {
      "type": "boolean"
    },
    "policy_version": {
      "type": "string"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "revision": {
      "type": "integer",
      "format": "int64"
    }
  }
}
AccessExplanation
JSON Schema
{
  "type": "object",
  "required": [
    "decision",
    "grant_paths",
    "conditions",
    "synchronization"
  ],
  "properties": {
    "conditions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DiagnosticCondition"
      }
    },
    "decision": {
      "$ref": "#/components/schemas/AccessDecision"
    },
    "grant_paths": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DiagnosticPath"
      }
    },
    "synchronization": {
      "$ref": "#/components/schemas/SynchronizationStatus"
    }
  }
}
AccessRequest
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "subject_id",
    "action"
  ],
  "properties": {
    "action": {
      "type": "string"
    },
    "context": {
      "type": "object",
      "additionalProperties": {},
      "propertyNames": {
        "type": "string"
      }
    },
    "organization_id": {
      "type": "string"
    },
    "resource": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "subject_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
AccessSearch
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "kind"
  ],
  "properties": {
    "action": {
      "type": [
        "string",
        "null"
      ]
    },
    "context": {
      "type": "object",
      "additionalProperties": {},
      "propertyNames": {
        "type": "string"
      }
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "$ref": "#/components/schemas/SearchKind"
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "organization_id": {
      "type": "string"
    },
    "resource": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "resource_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "subject_id": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
AccessSearchPage
JSON Schema
{
  "type": "object",
  "required": [
    "resources",
    "subjects",
    "actions",
    "revision",
    "policy_version"
  ],
  "properties": {
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "policy_version": {
      "type": "string"
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Resource"
      }
    },
    "revision": {
      "type": "integer",
      "format": "int64"
    },
    "subjects": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
AccountEntry
JSON Schema
{
  "type": "object",
  "required": [
    "url",
    "expires_in"
  ],
  "properties": {
    "expires_in": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "url": {
      "type": "string",
      "description": "Single-use link to the account security pages. Send the browser there right away."
    }
  }
}
AccountEntryRequest
JSON Schema
{
  "type": "object",
  "properties": {
    "return_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Where the account pages link back to. Its origin must be an application redirect origin."
    }
  },
  "additionalProperties": false
}
AccountOverview
JSON Schema
{
  "type": "object",
  "required": [
    "user",
    "disabled",
    "recovery_codes_remaining",
    "identities",
    "sessions",
    "memberships"
  ],
  "properties": {
    "disabled": {
      "type": "boolean"
    },
    "identities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LinkedIdentity"
      }
    },
    "local_account": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/LocalAccount"
        }
      ]
    },
    "memberships": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Membership"
      }
    },
    "recovery_codes_remaining": {
      "type": "integer",
      "format": "int64"
    },
    "sessions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AccountSessionSummary"
      }
    },
    "user": {
      "$ref": "#/components/schemas/User"
    }
  }
}
AccountSessionSummary
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "organization_id",
    "amr",
    "created_at",
    "expires_at",
    "current"
  ],
  "properties": {
    "amr": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connection_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "current": {
      "type": "boolean"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    }
  }
}
ActivateConfiguration
JSON Schema
{
  "type": "object",
  "properties": {
    "expected_active_version": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
ActivationRequest
JSON Schema
{
  "type": "object",
  "required": [
    "expected_revision"
  ],
  "properties": {
    "expected_revision": {
      "type": "integer",
      "format": "int64"
    },
    "without_comparison": {
      "type": "boolean",
      "description": "Reactivate a version that was active before without a new comparison, for rollback during a PDP outage. The audit log records it separately."
    }
  },
  "additionalProperties": false
}
AliasLookup
JSON Schema
{
  "type": "object",
  "required": [
    "external_id"
  ],
  "properties": {
    "external_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
AliasReviewMode
JSON Schema
{
  "type": "string",
  "enum": [
    "preview",
    "apply"
  ]
}
AssignmentRecord
JSON Schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/RoleAssignment"
    },
    {
      "type": "object",
      "required": [
        "source"
      ],
      "properties": {
        "source": {
          "type": "string"
        }
      }
    }
  ]
}
AttributeInput
JSON Schema
{
  "type": "object",
  "required": [
    "subject_id",
    "values",
    "ttl_seconds"
  ],
  "properties": {
    "subject_id": {
      "type": "string"
    },
    "ttl_seconds": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "values": {
      "type": "object",
      "additionalProperties": {},
      "propertyNames": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
AttributeNamespace
JSON Schema
{
  "type": "string",
  "enum": [
    "subject",
    "resource",
    "context",
    "authentication"
  ]
}
AttributeRef
JSON Schema
{
  "type": "object",
  "required": [
    "namespace",
    "name"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "namespace": {
      "$ref": "#/components/schemas/AttributeNamespace"
    }
  },
  "additionalProperties": false
}
AttributeRule
JSON Schema
{
  "type": "object",
  "required": [
    "attribute",
    "sources",
    "max_age_seconds"
  ],
  "properties": {
    "attribute": {
      "$ref": "#/components/schemas/AttributeRef"
    },
    "max_age_seconds": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
Attributes
JSON Schema
{
  "type": "object",
  "required": [
    "values",
    "source",
    "observed_at",
    "expires_at"
  ],
  "properties": {
    "expires_at": {
      "type": "integer",
      "format": "int64"
    },
    "observed_at": {
      "type": "integer",
      "format": "int64"
    },
    "source": {
      "type": "string"
    },
    "values": {
      "type": "object",
      "additionalProperties": {},
      "propertyNames": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
AuditEvent
JSON Schema
{
  "type": "object",
  "description": "CloudEvents structured JSON, with lowercase enterprise extension names.",
  "required": [
    "specversion",
    "id",
    "source",
    "type",
    "time",
    "datacontenttype",
    "organizationid",
    "data"
  ],
  "properties": {
    "actorid": {
      "type": [
        "string",
        "null"
      ]
    },
    "data": {},
    "datacontenttype": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "organizationid": {
      "type": "string"
    },
    "resourceid": {
      "type": [
        "string",
        "null"
      ]
    },
    "resourcetype": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": "string"
    },
    "specversion": {
      "type": "string"
    },
    "time": {
      "type": "string",
      "format": "date-time"
    },
    "type": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
AuditExportPage
JSON Schema
{
  "type": "object",
  "required": [
    "page",
    "until"
  ],
  "properties": {
    "page": {
      "$ref": "#/components/schemas/AuditPage"
    },
    "until": {
      "type": "string",
      "format": "date-time"
    }
  }
}
AuditPage
JSON Schema
{
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AuditEvent"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
AuditQuery
JSON Schema
{
  "type": "object",
  "properties": {
    "action": {
      "type": [
        "string",
        "null"
      ]
    },
    "actor": {
      "type": [
        "string",
        "null"
      ]
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "limit": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "resource_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "resource_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "since": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "until": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
AuditReceipt
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "duplicate"
  ],
  "properties": {
    "duplicate": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    }
  }
}
AuditStream
JSON Schema
{
  "type": "object",
  "description": "Sends an organization's audit entries to a SIEM endpoint in signed batches.",
  "required": [
    "id",
    "organization_id",
    "label",
    "endpoint",
    "created_by",
    "created_at",
    "failures"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "endpoint": {
      "type": "string"
    },
    "failures": {
      "type": "integer",
      "format": "int32",
      "description": "Failed batches since the last success."
    },
    "id": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "last_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_http_status": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "organization_id": {
      "type": "string"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
AuditStreamInput
JSON Schema
{
  "type": "object",
  "required": [
    "label",
    "endpoint"
  ],
  "properties": {
    "endpoint": {
      "type": "string",
      "description": "HTTPS endpoint that receives batches. It must match `events.allowed_destination_origins`."
    },
    "label": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
AuthorizationDecision
JSON Schema
{
  "type": "object",
  "required": [
    "allowed"
  ],
  "properties": {
    "allowed": {
      "type": "boolean"
    }
  }
}
AuthorizationRequest
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "subject_id",
    "action"
  ],
  "properties": {
    "action": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "resource": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "subject_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
BatchRequest
JSON Schema
{
  "type": "object",
  "required": [
    "evaluations"
  ],
  "properties": {
    "evaluations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AccessRequest"
      }
    }
  },
  "additionalProperties": false
}
BulkOperation
JSON Schema
{
  "type": "object",
  "required": [
    "method",
    "path"
  ],
  "properties": {
    "bulkId": {
      "type": [
        "string",
        "null"
      ]
    },
    "data": {},
    "method": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "version": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
BulkRequest
JSON Schema
{
  "type": "object",
  "required": [
    "schemas",
    "Operations"
  ],
  "properties": {
    "Operations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BulkOperation"
      }
    },
    "failOnErrors": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
CertificateInfo
JSON Schema
{
  "type": "object",
  "required": [
    "sha256",
    "subject",
    "not_before",
    "not_after"
  ],
  "properties": {
    "not_after": {
      "type": "integer",
      "format": "int64"
    },
    "not_before": {
      "type": "integer",
      "format": "int64"
    },
    "sha256": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    }
  }
}
ChangeMembership
JSON Schema
{
  "type": "object",
  "required": [
    "role",
    "status"
  ],
  "properties": {
    "role": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/MembershipStatus"
    }
  },
  "additionalProperties": false
}
ChangeReceipt
JSON Schema
{
  "type": "object",
  "required": [
    "revision",
    "policy_version"
  ],
  "properties": {
    "policy_version": {
      "type": "string"
    },
    "revision": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ChangeRequest
JSON Schema
{
  "type": "object",
  "required": [
    "expected_revision",
    "change"
  ],
  "properties": {
    "change": {
      "$ref": "#/components/schemas/PermissionChange"
    },
    "expected_revision": {
      "type": "integer",
      "format": "int64"
    }
  },
  "additionalProperties": false
}
ClientCreated
JSON Schema
{
  "type": "object",
  "required": [
    "client"
  ],
  "properties": {
    "client": {
      "$ref": "#/components/schemas/OAuthClient"
    },
    "client_secret": {
      "type": [
        "string",
        "null"
      ],
      "description": "The confidential client's secret. Shown once; only its hash is stored."
    }
  }
}
ClientList
JSON Schema
{
  "type": "object",
  "required": [
    "clients"
  ],
  "properties": {
    "clients": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OAuthClient"
      }
    }
  }
}
ClientSettings
JSON Schema
{
  "type": "object",
  "description": "Fields an operator sets. Unset optional fields keep their defaults.",
  "required": [
    "name",
    "client_type"
  ],
  "properties": {
    "client_type": {
      "$ref": "#/components/schemas/ClientType"
    },
    "enabled": {
      "type": "boolean"
    },
    "grant_types": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GrantType"
      }
    },
    "identity_only": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "organization_ids": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "pkce": {
      "$ref": "#/components/schemas/Pkce"
    },
    "post_logout_redirect_uris": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "redirect_uris": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "refresh_tokens": {
      "$ref": "#/components/schemas/RefreshTokens"
    },
    "resources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "trust": {
      "$ref": "#/components/schemas/ClientTrust"
    }
  },
  "additionalProperties": false
}
ClientSource
JSON Schema
{
  "type": "string",
  "enum": [
    "registered",
    "metadata_document"
  ]
}
ClientTrust
JSON Schema
{
  "type": "string",
  "description": "Who operates a client, and whether its users see the approval page.",
  "enum": [
    "third_party",
    "first_party",
    "first_party_skip_consent"
  ]
}
ClientType
JSON Schema
{
  "type": "string",
  "enum": [
    "public",
    "confidential"
  ]
}
CompareRequest
JSON Schema
{
  "type": "object",
  "required": [
    "expected_revision",
    "cases"
  ],
  "properties": {
    "cases": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PolicyComparison"
      }
    },
    "expected_revision": {
      "type": "integer",
      "format": "int64"
    }
  },
  "additionalProperties": false
}
Comparison
JSON Schema
{
  "type": "string",
  "enum": [
    "eq",
    "ne",
    "lt",
    "lte",
    "gt",
    "gte",
    "in",
    "contains"
  ]
}
ComparisonReport
JSON Schema
{
  "type": "object",
  "required": [
    "policy_version",
    "revision",
    "equivalent",
    "results"
  ],
  "properties": {
    "equivalent": {
      "type": "boolean"
    },
    "policy_version": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PolicyComparisonResult"
      }
    },
    "revision": {
      "type": "integer",
      "format": "int64"
    }
  }
}
Condition
JSON Schema
{
  "type": "object",
  "required": [
    "left",
    "op",
    "right"
  ],
  "properties": {
    "left": {
      "$ref": "#/components/schemas/Operand"
    },
    "op": {
      "$ref": "#/components/schemas/Comparison"
    },
    "right": {
      "$ref": "#/components/schemas/Operand"
    }
  },
  "additionalProperties": false
}
ConditionResult
JSON Schema
{
  "type": "string",
  "description": "Whether the conditions of an applicable policy rule held for a request.",
  "enum": [
    "matched",
    "not_matched",
    "unavailable_attribute_or_invalid_type"
  ]
}
ConfigurationDraft
JSON Schema
{
  "type": "object",
  "required": [
    "configuration"
  ],
  "properties": {
    "client_secret": {
      "type": [
        "string",
        "null"
      ],
      "description": "A replacement OIDC secret. It is encrypted before the draft is stored."
    },
    "configuration": {
      "$ref": "#/components/schemas/OrganizationConfiguration"
    },
    "expected_active_version": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
ConfigurationOverview
JSON Schema
{
  "type": "object",
  "required": [
    "versions",
    "recovery_connection_id",
    "customer_connection_id",
    "customer_issuer",
    "recovery_ready",
    "service_provider"
  ],
  "properties": {
    "active": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ConfigurationVersion"
        }
      ]
    },
    "customer_connection_id": {
      "type": "string"
    },
    "customer_issuer": {
      "type": "string"
    },
    "customer_login": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/LoginHealth",
          "description": "Recent sign-ins through the customer connection. `None` until someone tries one."
        }
      ]
    },
    "recovery_connection_id": {
      "type": "string"
    },
    "recovery_ready": {
      "type": "boolean"
    },
    "service_provider": {
      "$ref": "#/components/schemas/ServiceProviderDetails",
      "description": "Values the customer's IT admin enters in their identity provider."
    },
    "service_provider_metadata_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "signing_certificate_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the active SAML connection's last valid signing certificate expires. Sign-ins stop\nworking then unless the customer uploads renewed metadata."
    },
    "versions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ConfigurationVersion"
      }
    }
  }
}
ConfigurationStatus
JSON Schema
{
  "type": "string",
  "description": "Lifecycle of a stored configuration version.\n\nA draft is validated or tested, queued as `Activating`, and then becomes `Active` or `Failed`.\nActivating another version retires the previously active one.",
  "enum": [
    "draft",
    "validated",
    "tested",
    "activating",
    "active",
    "retired",
    "failed"
  ]
}
ConfigurationVersion
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "organization_id",
    "configuration",
    "status",
    "created_by",
    "created_at",
    "attempts"
  ],
  "properties": {
    "attempts": {
      "type": "integer",
      "format": "int32"
    },
    "base_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "configuration": {
      "$ref": "#/components/schemas/OrganizationConfiguration"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "metadata_checked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the runtime last fetched the SAML `metadata_url` of this active version."
    },
    "metadata_error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why the last fetched metadata was not applied. A successful refresh clears it."
    },
    "organization_id": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/ConfigurationStatus"
    },
    "test_failure": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/LoginFailure",
          "description": "Why the last login test failed. `None` after a successful test or before any test."
        }
      ]
    },
    "test_result": {
      "type": [
        "string",
        "null"
      ]
    },
    "tested_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
ConnectionInspection
JSON Schema
{
  "type": "object",
  "required": [
    "entity_id",
    "sso_url",
    "certificates",
    "subject_attribute"
  ],
  "properties": {
    "certificates": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CertificateInfo"
      }
    },
    "entity_id": {
      "type": "string"
    },
    "sso_url": {
      "type": "string"
    },
    "subject_attribute": {
      "type": "string"
    }
  }
}
ConnectionTestStarted
JSON Schema
{
  "type": "object",
  "required": [
    "login_url",
    "expires_in"
  ],
  "properties": {
    "expires_in": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "login_url": {
      "type": "string"
    }
  }
}
CreateDirectoryCredential
JSON Schema
{
  "type": "object",
  "required": [
    "label"
  ],
  "properties": {
    "expires_in_days": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Days until the credential stops working, from 1 to 730. Omit it for a credential that\nworks until it is revoked.",
      "minimum": 0
    },
    "label": {
      "type": "string"
    },
    "rotate": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
CreateInvitation
JSON Schema
{
  "type": "object",
  "required": [
    "email",
    "role"
  ],
  "properties": {
    "email": {
      "type": "string"
    },
    "role": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
CreateOrganization
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "name",
    "slug"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "A reserved canonical ID within the calling service credential scope."
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
CreateOwnedOrganization
JSON Schema
{
  "type": "object",
  "required": [
    "onboarding_token",
    "id",
    "name",
    "slug"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "onboarding_token": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
CredentialRotation
JSON Schema
{
  "type": "object",
  "description": "Rotation replaces a verifier immediately unless bounded overlap is requested.",
  "properties": {
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "overlap_seconds": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  },
  "additionalProperties": false
}
Delivery
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "subscription_id",
    "event_id",
    "status",
    "attempts",
    "next_attempt_at",
    "created_at"
  ],
  "properties": {
    "attempts": {
      "type": "integer",
      "format": "int32"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "event_id": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_http_status": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "next_attempt_at": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "$ref": "#/components/schemas/DeliveryStatus"
    },
    "subscription_id": {
      "type": "string"
    }
  }
}
DeliveryAttempt
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "delivery_id",
    "number",
    "started_at"
  ],
  "properties": {
    "delivery_id": {
      "type": "string"
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "finished_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "http_status": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "id": {
      "type": "string"
    },
    "number": {
      "type": "integer",
      "format": "int32"
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
DeliveryDetail
JSON Schema
{
  "type": "object",
  "required": [
    "delivery",
    "attempts"
  ],
  "properties": {
    "attempts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DeliveryAttempt"
      }
    },
    "delivery": {
      "$ref": "#/components/schemas/Delivery"
    }
  }
}
DeliveryPage
JSON Schema
{
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Delivery"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
DeliveryStatus
JSON Schema
{
  "type": "string",
  "description": "Lifecycle of one webhook delivery: `pending` and `retry` wait for a worker, `sending` holds a lease,\nand `delivered`, `failed` and `cancelled` are final.",
  "enum": [
    "pending",
    "retry",
    "sending",
    "delivered",
    "failed",
    "cancelled"
  ]
}
DiagnosticCondition
JSON Schema
{
  "type": "object",
  "required": [
    "rule_id",
    "effect",
    "result",
    "attributes"
  ],
  "properties": {
    "attributes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "effect": {
      "$ref": "#/components/schemas/PolicyEffect"
    },
    "result": {
      "$ref": "#/components/schemas/ConditionResult"
    },
    "rule_id": {
      "type": "string"
    }
  }
}
DiagnosticPath
JSON Schema
{
  "type": "object",
  "required": [
    "source",
    "kind",
    "actions",
    "inherited"
  ],
  "properties": {
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "inherited": {
      "type": "boolean"
    },
    "kind": {
      "$ref": "#/components/schemas/GrantPathKind"
    },
    "scope": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "source": {
      "type": "string"
    }
  }
}
DiagnosticRequest
JSON Schema
{
  "type": "object",
  "required": [
    "subject_id",
    "action"
  ],
  "properties": {
    "action": {
      "type": "string"
    },
    "resource": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "session_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "subject_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
DirectoryAdministration
JSON Schema
{
  "type": "object",
  "required": [
    "configuration",
    "endpoint",
    "managed_credentials",
    "credentials",
    "user_count",
    "group_count"
  ],
  "properties": {
    "configuration": {
      "$ref": "#/components/schemas/DirectoryConfiguration"
    },
    "credentials": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DirectoryCredential"
      }
    },
    "endpoint": {
      "type": "string"
    },
    "group_count": {
      "type": "integer",
      "format": "int64"
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_error_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_request_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_success_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "managed_credentials": {
      "type": "boolean"
    },
    "user_count": {
      "type": "integer",
      "format": "int64"
    }
  }
}
DirectoryConfiguration
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "connection_id",
    "issuer",
    "default_role",
    "group_roles"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "default_role": {
      "type": "string"
    },
    "group_roles": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "group_teams": {
      "type": "object",
      "description": "Immutable upstream group ID to an existing team (permission group). The team keeps its\nown members, roles and grants, and also contains the directory group's members.",
      "additionalProperties": {
        "type": "string"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "id": {
      "type": "string"
    },
    "issuer": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "format": "int64",
      "description": "On write, zero creates a new directory and a positive value must match the last read."
    }
  },
  "additionalProperties": false
}
DirectoryCredential
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "label",
    "created_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the credential stops working on its own. Null for a credential without expiry."
    },
    "id": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
DirectoryEmail
JSON Schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "primary": {
      "type": "boolean"
    },
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "value": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
DirectoryGroupData
JSON Schema
{
  "type": "object",
  "required": [
    "displayName"
  ],
  "properties": {
    "displayName": {
      "type": "string"
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ]
    },
    "members": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": {}
}
DirectoryIdentity
JSON Schema
{
  "type": "object",
  "required": [
    "directory_id",
    "scim_id",
    "external_id",
    "user_name",
    "active",
    "deleted"
  ],
  "properties": {
    "active": {
      "type": "boolean"
    },
    "deleted": {
      "type": "boolean"
    },
    "directory_id": {
      "type": "string"
    },
    "external_id": {
      "type": "string"
    },
    "scim_id": {
      "type": "string"
    },
    "user_name": {
      "type": "string"
    }
  }
}
DirectoryName
JSON Schema
{
  "type": "object",
  "properties": {
    "familyName": {
      "type": [
        "string",
        "null"
      ]
    },
    "formatted": {
      "type": [
        "string",
        "null"
      ]
    },
    "givenName": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": {}
}
DirectorySchema
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "name",
    "description",
    "resource_type",
    "attributes",
    "version"
  ],
  "properties": {
    "attributes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ScimAttribute"
      }
    },
    "description": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "resource_type": {
      "$ref": "#/components/schemas/ScimResourceKind"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  },
  "additionalProperties": false
}
DirectoryUserData
JSON Schema
{
  "type": "object",
  "required": [
    "externalId",
    "userName"
  ],
  "properties": {
    "active": {
      "type": "boolean"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "emails": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DirectoryEmail"
      }
    },
    "externalId": {
      "type": "string"
    },
    "name": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/DirectoryName"
        }
      ]
    },
    "userName": {
      "type": "string"
    }
  },
  "additionalProperties": {}
}
DomainRecord
JSON Schema
{
  "type": "object",
  "required": [
    "domain",
    "record_name",
    "record_value",
    "expires_at"
  ],
  "properties": {
    "domain": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "record_name": {
      "type": "string"
    },
    "record_value": {
      "type": "string"
    },
    "renewal_error": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why the last automatic renewal failed. Cleared when a renewal or a manual verification\nsucceeds."
    },
    "verified_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
DomainRequest
JSON Schema
{
  "type": "object",
  "required": [
    "domain"
  ],
  "properties": {
    "domain": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
DraftPolicy
JSON Schema
{
  "type": "object",
  "required": [
    "expected_revision",
    "bundle"
  ],
  "properties": {
    "bundle": {
      "$ref": "#/components/schemas/ExportBundle"
    },
    "expected_revision": {
      "type": "integer",
      "format": "int64"
    }
  },
  "additionalProperties": false
}
EmailDelivery
JSON Schema
{
  "type": "object",
  "description": "Delivery diagnostics without message content or recipients' full addresses.",
  "required": [
    "id",
    "recipient_domain",
    "template",
    "status",
    "attempts",
    "created_at",
    "expires_at"
  ],
  "properties": {
    "attempts": {
      "type": "integer",
      "format": "int32"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "recipient_domain": {
      "type": "string"
    },
    "sent_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "status": {
      "$ref": "#/components/schemas/EmailDeliveryStatus"
    },
    "template": {
      "type": "string"
    }
  }
}
EmailDeliveryStatus
JSON Schema
{
  "type": "string",
  "enum": [
    "pending",
    "sent",
    "failed",
    "expired"
  ]
}
EnableAdministration
JSON Schema
{
  "type": "object",
  "properties": {
    "customer_connection_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The organization's own SSO connection. Defaults to `customer-<organization ID>`."
    },
    "infrastructure": {
      "type": [
        "string",
        "null"
      ],
      "description": "An identity broker profile from `administration.infrastructure`. Without one, the runtime\nserves SAML itself."
    },
    "recovery_connection_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The connection owners use when SSO is broken. Defaults to the local account connection\nwhen local accounts serve the organization."
    }
  },
  "additionalProperties": false
}
EnrollmentIssued
JSON Schema
{
  "type": "object",
  "required": [
    "enrollment_url",
    "expires_at",
    "emailed"
  ],
  "properties": {
    "emailed": {
      "type": "boolean"
    },
    "enrollment_url": {
      "type": "string",
      "description": "Single-use link where the person sets a password. Treat it like a password."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
EnrollmentRequest
JSON Schema
{
  "type": "object",
  "required": [
    "email",
    "organization_id"
  ],
  "properties": {
    "email": {
      "type": "string"
    },
    "initial_owner": {
      "type": "boolean",
      "description": "Set up the organization's first owner. Only one owner setup can succeed."
    },
    "organization_id": {
      "type": "string"
    },
    "organization_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Create the organization first when it does not exist."
    },
    "role": {
      "type": "string",
      "description": "Role of the initial membership. Ignored for an initial owner, who becomes `owner`."
    },
    "send_email": {
      "type": "boolean",
      "description": "Also email the link. Without email, give the returned link to the person directly."
    }
  },
  "additionalProperties": false
}
EnterWorkspace
JSON Schema
{
  "type": "object",
  "required": [
    "onboarding_token"
  ],
  "properties": {
    "onboarding_token": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ErrorBody
JSON Schema
{
  "type": "object",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "$ref": "#/components/schemas/ErrorDetail"
    }
  }
}
ErrorDetail
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  }
}
EventCatalog
JSON Schema
{
  "type": "object",
  "required": [
    "schema_version",
    "event_types",
    "delivery",
    "max_page_size",
    "retention_days"
  ],
  "properties": {
    "delivery": {
      "type": "string"
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "max_page_size": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "retention_days": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "schema_version": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  }
}
EventPage
JSON Schema
{
  "type": "object",
  "required": [
    "items",
    "next_cursor",
    "head_cursor",
    "oldest_cursor",
    "has_more",
    "retention_days",
    "max_page_size"
  ],
  "properties": {
    "has_more": {
      "type": "boolean"
    },
    "head_cursor": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/LifecycleEvent"
      }
    },
    "max_page_size": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "next_cursor": {
      "type": "string"
    },
    "oldest_cursor": {
      "type": "string"
    },
    "retention_days": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  }
}
EventSnapshot
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "checkpoint",
    "expires_at",
    "total",
    "items"
  ],
  "properties": {
    "checkpoint": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ResourceState"
      }
    },
    "next_offset": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "minimum": 0
    },
    "total": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  }
}
ExchangeRequest
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "verifier"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "verifier": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ExportBundle
JSON Schema
{
  "type": "object",
  "required": [
    "schema_version",
    "organization_id",
    "local",
    "managed_roles",
    "managed_assignments",
    "managed_groups"
  ],
  "properties": {
    "local": {
      "$ref": "#/components/schemas/PermissionBundle"
    },
    "managed_assignments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AssignmentRecord"
      }
    },
    "managed_groups": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GroupRecord"
      }
    },
    "managed_roles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RoleRecord"
      }
    },
    "organization_id": {
      "type": "string"
    },
    "schema_version": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ExportRequest
JSON Schema
{
  "type": "object",
  "required": [
    "requested_by"
  ],
  "properties": {
    "filter": {
      "$ref": "#/components/schemas/AuditQuery"
    },
    "requested_by": {
      "type": "string",
      "description": "The admin identified by the host application's authenticated session."
    }
  },
  "additionalProperties": false
}
Grant
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "client",
    "client_id",
    "client_name",
    "user_id",
    "resource",
    "scopes",
    "offline",
    "status",
    "session_id",
    "origin",
    "created_at",
    "expires_at"
  ],
  "properties": {
    "client": {
      "type": "string",
      "description": "Internal client identifier."
    },
    "client_id": {
      "type": "string"
    },
    "client_name": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "offline": {
      "type": "boolean"
    },
    "organization_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "origin": {
      "type": "object"
    },
    "resource": {
      "type": "string"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "revoked_reason": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/GrantRevocationReason"
        }
      ]
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "session_id": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/GrantStatus"
    },
    "user_id": {
      "type": "string"
    }
  }
}
GrantList
JSON Schema
{
  "type": "object",
  "required": [
    "grants"
  ],
  "properties": {
    "grants": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Grant"
      }
    }
  }
}
GrantPathKind
JSON Schema
{
  "type": "string",
  "description": "What gave a principal the actions on a diagnostic grant path.",
  "enum": [
    "role",
    "acl",
    "relationship",
    "grant"
  ]
}
GrantRevocationReason
JSON Schema
{
  "type": "string",
  "description": "Why a grant ended.",
  "enum": [
    "scope_withdrawn",
    "resource_deleted",
    "client_deleted",
    "client_blocked",
    "logout",
    "code_replay",
    "redemption_failed",
    "refresh_reuse",
    "client_revocation",
    "organization_revocation",
    "user_withdrawal",
    "operator_revocation",
    "database_restore"
  ]
}
GrantStatus
JSON Schema
{
  "type": "string",
  "enum": [
    "pending",
    "active",
    "revoked"
  ]
}
GrantType
JSON Schema
{
  "type": "string",
  "description": "An OAuth grant a client may use at the token endpoint.",
  "enum": [
    "authorization_code",
    "refresh_token",
    "client_credentials"
  ]
}
GroupRecord
JSON Schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/PermissionGroup"
    },
    {
      "type": "object",
      "required": [
        "source"
      ],
      "properties": {
        "member_of": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Local teams this managed group belongs to, as a directory's `group_teams` maps it. Its\nmembers then hold what those teams hold. A team that no longer exists is skipped."
        },
        "source": {
          "type": "string"
        }
      }
    }
  ]
}
Health
JSON Schema
{
  "type": "object",
  "required": [
    "status"
  ],
  "properties": {
    "status": {
      "$ref": "#/components/schemas/HealthStatus"
    }
  }
}
HealthStatus
JSON Schema
{
  "type": "string",
  "enum": [
    "ok",
    "ready"
  ]
}
IdentityMigration
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "organization_id",
    "operator",
    "source",
    "connection_id",
    "issuer",
    "mapping_hash",
    "allow_shared_users",
    "status",
    "created_at",
    "updated_at",
    "items"
  ],
  "properties": {
    "allow_shared_users": {
      "type": "boolean"
    },
    "connection_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "issuer": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MigrationItem"
      }
    },
    "mapping_hash": {
      "type": "string"
    },
    "operator": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/IdentityMigrationStatus"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
IdentityMigrationStatus
JSON Schema
{
  "type": "string",
  "enum": [
    "planned",
    "running",
    "completed",
    "completed_with_conflicts",
    "rolled_back"
  ]
}
ImportMembership
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "role"
  ],
  "properties": {
    "organization_id": {
      "type": "string"
    },
    "role": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
Invitation
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "organization_id",
    "email",
    "role",
    "expires_at"
  ],
  "properties": {
    "accepted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "email": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "role": {
      "type": "string"
    }
  }
}
IssuedAuditStream
JSON Schema
{
  "type": "object",
  "description": "A new stream with its Standard Webhooks signing secret, which is shown only once.",
  "required": [
    "stream",
    "secret"
  ],
  "properties": {
    "secret": {
      "type": "string"
    },
    "stream": {
      "$ref": "#/components/schemas/AuditStream"
    }
  }
}
IssuedDirectoryCredential
JSON Schema
{
  "type": "object",
  "required": [
    "credential",
    "token"
  ],
  "properties": {
    "credential": {
      "$ref": "#/components/schemas/DirectoryCredential"
    },
    "token": {
      "type": "string"
    }
  }
}
IssuedInvitation
JSON Schema
{
  "type": "object",
  "required": [
    "invitation",
    "token",
    "email_queued"
  ],
  "properties": {
    "acceptance_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "A one-time link to the registered application invitation handler, when configured."
    },
    "email_queued": {
      "type": "boolean",
      "description": "The invitation and its email were committed together to the delivery outbox."
    },
    "invitation": {
      "$ref": "#/components/schemas/Invitation"
    },
    "token": {
      "type": "string",
      "description": "Returned once to the authorized caller for delivery. Never logged or persisted in cleartext."
    }
  }
}
IssuedSigningSecret
JSON Schema
{
  "type": "object",
  "required": [
    "subscription",
    "key_id",
    "secret"
  ],
  "properties": {
    "key_id": {
      "type": "string"
    },
    "secret": {
      "type": "string"
    },
    "subscription": {
      "$ref": "#/components/schemas/Subscription"
    }
  }
}
IssuedVendorSubscription
JSON Schema
{
  "type": "object",
  "required": [
    "subscription",
    "secret"
  ],
  "properties": {
    "secret": {
      "type": "string",
      "description": "The Standard Webhooks signing secret. It is shown only here."
    },
    "subscription": {
      "$ref": "#/components/schemas/VendorSubscription"
    }
  }
}
IssuerSigningKey
JSON Schema
{
  "type": "object",
  "description": "Public signing key state. The private key stays sealed.",
  "required": [
    "kid",
    "algorithm",
    "public_jwk",
    "created_at",
    "activates_at"
  ],
  "properties": {
    "activates_at": {
      "type": "string",
      "format": "date-time"
    },
    "algorithm": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "kid": {
      "type": "string"
    },
    "public_jwk": {
      "type": "object"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
KeyList
JSON Schema
{
  "type": "object",
  "required": [
    "keys"
  ],
  "properties": {
    "keys": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/IssuerSigningKey"
      }
    }
  }
}
LifecycleEvent
JSON Schema
{
  "type": "object",
  "required": [
    "specversion",
    "id",
    "source",
    "type",
    "time",
    "datacontenttype",
    "organizationid",
    "resourcetype",
    "resourceid",
    "schemaversion",
    "resourceversion",
    "sequence",
    "data"
  ],
  "properties": {
    "actorid": {
      "type": [
        "string",
        "null"
      ]
    },
    "data": {},
    "datacontenttype": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "organizationid": {
      "type": "string"
    },
    "resourceid": {
      "type": "string"
    },
    "resourcetype": {
      "type": "string"
    },
    "resourceversion": {
      "type": "integer",
      "format": "int64"
    },
    "schemaversion": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "sequence": {
      "type": "integer",
      "format": "int64"
    },
    "source": {
      "type": "string"
    },
    "specversion": {
      "type": "string"
    },
    "time": {
      "type": "string",
      "format": "date-time"
    },
    "type": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
LinkedIdentity
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "connection_id",
    "issuer",
    "subject",
    "local",
    "created_at"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "issuer": {
      "type": "string"
    },
    "local": {
      "type": "boolean"
    },
    "subject": {
      "type": "string"
    }
  }
}
LocalAccount
JSON Schema
{
  "type": "object",
  "description": "Public view of a local account. It never carries a password hash or factor secret.",
  "required": [
    "id",
    "user_id",
    "email_verified",
    "has_password",
    "mfa_enabled",
    "disabled",
    "created_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "disabled": {
      "type": "boolean"
    },
    "email_verified": {
      "type": "boolean"
    },
    "has_password": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "login_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "mfa_enabled": {
      "type": "boolean"
    },
    "user_id": {
      "type": "string"
    }
  }
}
LocalCredentialsRequest
JSON Schema
{
  "type": "object",
  "required": [
    "disabled"
  ],
  "properties": {
    "disabled": {
      "type": "boolean",
      "description": "Turn local password sign-in off or on. Linked identities keep working."
    }
  },
  "additionalProperties": false
}
LocalLoginPolicy
JSON Schema
{
  "type": "string",
  "description": "Organization policy for local login. `RecoveryOnly` admits only the organization's recovery\nowners, for example while SSO enforcement is prepared.",
  "enum": [
    "enabled",
    "recovery_only",
    "disabled"
  ]
}
LoginFailure
JSON Schema
{
  "type": "string",
  "description": "Why a login provider refused a response. Organization administrators see it in the console;\nthe person signing in only learns that sign-in failed.",
  "enum": [
    "idp_error",
    "signature_invalid",
    "no_valid_certificate",
    "issuer_mismatch",
    "audience_mismatch",
    "destination_mismatch",
    "request_mismatch",
    "outside_time_window",
    "confirmation_invalid",
    "subject_missing",
    "replayed",
    "unsupported",
    "malformed",
    "other"
  ]
}
LoginFailureRecord
JSON Schema
{
  "type": "object",
  "description": "The most recent refused sign-in on a connection.",
  "required": [
    "at",
    "reason",
    "description"
  ],
  "properties": {
    "at": {
      "type": "string",
      "format": "date-time"
    },
    "description": {
      "type": "string",
      "description": "What an administrator should check for this reason."
    },
    "reason": {
      "$ref": "#/components/schemas/LoginFailure"
    }
  }
}
LoginHealth
JSON Schema
{
  "type": "object",
  "description": "The latest sign-in outcome on an organization's own SSO connection.\n\nOnly sign-ins that reach the connection with a valid login state count, so unsolicited\nposts to the ACS URL do not show up here.",
  "required": [
    "failures_since_success"
  ],
  "properties": {
    "failures_since_success": {
      "type": "integer",
      "format": "int32",
      "description": "Failed sign-ins since the last successful one."
    },
    "last_failure": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/LoginFailureRecord"
        }
      ]
    },
    "last_success_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
LoginRoute
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "connection_id"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    }
  }
}
LoginStarted
JSON Schema
{
  "type": "object",
  "required": [
    "login_url",
    "expires_in"
  ],
  "properties": {
    "expires_in": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "login_url": {
      "type": "string"
    }
  }
}
MachineAccessDecision
JSON Schema
{
  "type": "object",
  "required": [
    "principal_type",
    "service_account_id",
    "credential_id",
    "decision"
  ],
  "properties": {
    "credential_id": {
      "type": "string"
    },
    "decision": {
      "$ref": "#/components/schemas/AccessDecision"
    },
    "principal_type": {
      "$ref": "#/components/schemas/PrincipalType"
    },
    "service_account_id": {
      "type": "string"
    }
  }
}
MachineAccessRequest
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "action",
    "resource"
  ],
  "properties": {
    "action": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "resource": {
      "$ref": "#/components/schemas/Resource"
    }
  },
  "additionalProperties": false
}
MachineCredential
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "service_account_id",
    "organization_id",
    "name",
    "kind",
    "restrictions",
    "scopes",
    "epoch",
    "created_at"
  ],
  "properties": {
    "audience": {
      "type": [
        "string",
        "null"
      ]
    },
    "client_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "epoch": {
      "type": "integer",
      "format": "int64"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "kind": {
      "$ref": "#/components/schemas/MachineCredentialKind"
    },
    "name": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "restrictions": {
      "$ref": "#/components/schemas/MachineRestrictions"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "service_account_id": {
      "type": "string"
    }
  }
}
MachineCredentialIssued
JSON Schema
{
  "type": "object",
  "required": [
    "credential",
    "secret"
  ],
  "properties": {
    "credential": {
      "$ref": "#/components/schemas/MachineCredential"
    },
    "secret": {
      "type": "string",
      "description": "Returned only from creation or rotation. List and inspection responses omit this field."
    }
  }
}
MachineCredentialKind
JSON Schema
{
  "type": "string",
  "description": "The authentication mechanism backing a machine credential.",
  "enum": [
    "api_key",
    "oauth_client"
  ]
}
MachineOAuthBinding
JSON Schema
{
  "type": "object",
  "required": [
    "name",
    "client_id",
    "audience",
    "scopes",
    "restrictions"
  ],
  "properties": {
    "audience": {
      "type": "string"
    },
    "client_id": {
      "type": "string",
      "description": "Internal registered OAuth client ID. The binding grants no authority without permissions."
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "name": {
      "type": "string"
    },
    "restrictions": {
      "$ref": "#/components/schemas/MachineRestrictions"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
MachineOAuthClientRequest
JSON Schema
{
  "type": "object",
  "required": [
    "name",
    "audience",
    "scopes",
    "restrictions"
  ],
  "properties": {
    "audience": {
      "type": "string"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "name": {
      "type": "string"
    },
    "restrictions": {
      "$ref": "#/components/schemas/MachineRestrictions"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
MachineRestrictions
JSON Schema
{
  "type": "object",
  "description": "Both actions and resources are explicit allowlists. An empty list grants no access.",
  "required": [
    "actions",
    "resources"
  ],
  "properties": {
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Resource"
      }
    }
  },
  "additionalProperties": false
}
ManagedResource
JSON Schema
{
  "type": "object",
  "required": [
    "resource",
    "attributes"
  ],
  "properties": {
    "attributes": {
      "$ref": "#/components/schemas/Attributes"
    },
    "parent": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "resource": {
      "$ref": "#/components/schemas/Resource"
    }
  },
  "additionalProperties": false
}
Me
JSON Schema
{
  "type": "object",
  "required": [
    "user",
    "session"
  ],
  "properties": {
    "membership": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Membership"
        }
      ]
    },
    "session": {
      "$ref": "#/components/schemas/Session"
    },
    "user": {
      "$ref": "#/components/schemas/User"
    }
  }
}
MemberPage
JSON Schema
{
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Membership"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
Membership
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "user_id",
    "organization_id",
    "role",
    "status",
    "created_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "role": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/MembershipStatus"
    },
    "user_id": {
      "type": "string"
    }
  }
}
MembershipStatus
JSON Schema
{
  "type": "string",
  "description": "Whether a membership currently carries its role. A suspended member keeps the record and the\nrole but holds no access.",
  "enum": [
    "active",
    "suspended"
  ]
}
MigrationItem
JSON Schema
{
  "type": "object",
  "required": [
    "position",
    "user_id",
    "subject",
    "status"
  ],
  "properties": {
    "detail": {
      "type": [
        "string",
        "null"
      ]
    },
    "directory_subject": {
      "type": [
        "string",
        "null"
      ]
    },
    "position": {
      "type": "integer",
      "format": "int32"
    },
    "status": {
      "$ref": "#/components/schemas/MigrationItemStatus"
    },
    "subject": {
      "type": "string"
    },
    "user_id": {
      "type": "string"
    }
  }
}
MigrationItemStatus
JSON Schema
{
  "type": "string",
  "description": "Outcome of one mapping in an identity migration.",
  "enum": [
    "pending",
    "linked",
    "already_linked",
    "conflict",
    "rolled_back",
    "link_changed"
  ]
}
MigrationMapping
JSON Schema
{
  "type": "object",
  "required": [
    "user_id",
    "subject"
  ],
  "properties": {
    "directory_subject": {
      "type": [
        "string",
        "null"
      ],
      "description": "The immutable directory identifier, when the organization provisions this connection\nthrough SCIM."
    },
    "subject": {
      "type": "string",
      "description": "The verified subject at the target connection."
    },
    "user_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
MigrationPlanRequest
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "connection_id",
    "source",
    "mappings"
  ],
  "properties": {
    "allow_shared_users": {
      "type": "boolean",
      "description": "Permit links for users who also belong to other organizations. Needs `accounts:manage`."
    },
    "connection_id": {
      "type": "string",
      "description": "Configured target OIDC or native SAML connection of the organization."
    },
    "mappings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MigrationMapping"
      }
    },
    "organization_id": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "description": "Where the mapping came from, for the audit record, such as a ticket or file name."
    }
  },
  "additionalProperties": false
}
MigrationStatus
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "members",
    "members_with_local_account",
    "members_linked_to_customer_connection",
    "policy",
    "enforce_sso"
  ],
  "properties": {
    "customer_connection_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "enforce_sso": {
      "type": "boolean"
    },
    "members": {
      "type": "integer",
      "format": "int64"
    },
    "members_linked_to_customer_connection": {
      "type": "integer",
      "format": "int64"
    },
    "members_with_local_account": {
      "type": "integer",
      "format": "int64"
    },
    "organization_id": {
      "type": "string"
    },
    "policy": {
      "$ref": "#/components/schemas/OrganizationLoginPolicy"
    }
  }
}
NewMachineCredential
JSON Schema
{
  "type": "object",
  "required": [
    "name",
    "restrictions"
  ],
  "properties": {
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "name": {
      "type": "string"
    },
    "restrictions": {
      "$ref": "#/components/schemas/MachineRestrictions"
    }
  },
  "additionalProperties": false
}
NodeRef
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "user"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "service_account"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "group"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "resource",
        "type"
      ],
      "properties": {
        "resource": {
          "$ref": "#/components/schemas/Resource"
        },
        "type": {
          "type": "string",
          "enum": [
            "resource"
          ]
        }
      }
    }
  ]
}
OAuthClient
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "client_id",
    "source",
    "name",
    "client_type",
    "grant_types",
    "redirect_uris",
    "post_logout_redirect_uris",
    "resources",
    "scopes",
    "identity_only",
    "pkce",
    "trust",
    "refresh_tokens",
    "enabled",
    "policy_version",
    "configured",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "client_id": {
      "type": "string",
      "description": "The OAuth `client_id`."
    },
    "client_type": {
      "$ref": "#/components/schemas/ClientType"
    },
    "configured": {
      "type": "boolean",
      "description": "Managed by the runtime configuration; the management API cannot change it."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "credential_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "enabled": {
      "type": "boolean"
    },
    "grant_types": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GrantType"
      }
    },
    "id": {
      "type": "string",
      "description": "Internal identifier used by the management API."
    },
    "identity_only": {
      "type": "boolean",
      "description": "Permits OpenID Connect login without an organization."
    },
    "metadata_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "metadata_hash": {
      "type": [
        "string",
        "null"
      ],
      "description": "Version of the security-relevant fields of a metadata document."
    },
    "metadata_refresh_tokens": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "The metadata document's refresh-token support. None for registered clients."
    },
    "name": {
      "type": "string"
    },
    "organization_ids": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Organizations the client may receive grants for. None permits any active membership."
    },
    "pkce": {
      "$ref": "#/components/schemas/Pkce"
    },
    "policy_version": {
      "type": "integer",
      "format": "int64"
    },
    "post_logout_redirect_uris": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "redirect_uris": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "refresh_tokens": {
      "$ref": "#/components/schemas/RefreshTokens",
      "description": "Operator policy for refresh tokens, independent of the client's declared grant types."
    },
    "resources": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Resource URIs the client may request."
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Scopes the client may request, identity scopes included."
    },
    "source": {
      "$ref": "#/components/schemas/ClientSource"
    },
    "trust": {
      "$ref": "#/components/schemas/ClientTrust"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
OAuthResource
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "uri",
    "name",
    "scopes",
    "introspection",
    "machine_access",
    "configured",
    "version",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "configured": {
      "type": "boolean",
      "description": "Managed by the runtime configuration; the management API cannot change it."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "credential_expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "introspection": {
      "type": "boolean",
      "description": "Whether the resource server holds an introspection credential."
    },
    "machine_access": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ScopeDefinition"
      }
    },
    "tool_permissions": {
      "type": "object",
      "description": "The permission each MCP tool of this resource needs, by tool name.",
      "additionalProperties": {
        "type": "string"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "uri": {
      "type": "string",
      "description": "Canonical resource URI and access-token audience."
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
OnboardingIssued
JSON Schema
{
  "type": "object",
  "required": [
    "onboarding_token",
    "workspaces",
    "expires_in"
  ],
  "properties": {
    "expires_in": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "onboarding_token": {
      "type": "string",
      "description": "Single-use, service-bound proof for entering an existing workspace or creating a tenant."
    },
    "user": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/User",
          "description": "Present for backends authorized to create organizations. Login-only backends get the\nprofile from the selected tenant session after satisfying its authentication policy."
        }
      ]
    },
    "workspaces": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OrganizationChoice"
      }
    }
  }
}
Operand
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "required": [
        "value",
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "literal"
          ]
        },
        "value": {}
      }
    },
    {
      "type": "object",
      "required": [
        "attribute",
        "kind"
      ],
      "properties": {
        "attribute": {
          "$ref": "#/components/schemas/AttributeRef"
        },
        "kind": {
          "type": "string",
          "enum": [
            "attribute"
          ]
        }
      }
    }
  ]
}
OperatorContext
JSON Schema
{
  "type": "object",
  "required": [
    "operator_id",
    "scopes",
    "expires_at",
    "csrf"
  ],
  "properties": {
    "csrf": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "operator_id": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
OperatorEntry
JSON Schema
{
  "type": "object",
  "required": [
    "entry_url",
    "expires_in"
  ],
  "properties": {
    "entry_url": {
      "type": "string"
    },
    "expires_in": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  }
}
OperatorOrganization
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "name",
    "created_at",
    "member_count"
  ],
  "properties": {
    "administration": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/TenantRecord",
          "description": "Enterprise administration while it is on."
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "member_count": {
      "type": "integer",
      "format": "int64",
      "description": "Active memberships."
    },
    "name": {
      "type": "string"
    }
  }
}
OperatorOrganizationDetail
JSON Schema
{
  "type": "object",
  "required": [
    "organization",
    "directories"
  ],
  "properties": {
    "configuration": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ConfigurationOverview",
          "description": "SSO configuration, connections, sign-in health and certificate expiry. `None` while\nadministration is off."
        }
      ]
    },
    "directories": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DirectoryAdministration"
      },
      "description": "SCIM directories with their last sync and last error."
    },
    "organization": {
      "$ref": "#/components/schemas/OperatorOrganization"
    },
    "portal_sign_in_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Where the organization's administrators sign in to the admin portal. Send it to them.\n`None` while administration is off."
    }
  }
}
OperatorOrganizationPage
JSON Schema
{
  "type": "object",
  "required": [
    "organizations"
  ],
  "properties": {
    "next_after": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `after` for the next page. `None` on the last page."
    },
    "organizations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorOrganization"
      }
    }
  }
}
OperatorSecret
JSON Schema
{
  "type": "object",
  "properties": {
    "delivery_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "secret": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
Organization
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "name",
    "slug",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
OrganizationChoice
JSON Schema
{
  "type": "object",
  "description": "An organization a user could select for a grant.",
  "required": [
    "id",
    "name",
    "role"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "role": {
      "type": "string"
    }
  }
}
OrganizationClient
JSON Schema
{
  "type": "object",
  "description": "A client as one organization's administrators see it.",
  "required": [
    "client",
    "client_id",
    "name",
    "source",
    "client_type",
    "trust",
    "enabled",
    "blocked",
    "active_grants"
  ],
  "properties": {
    "active_grants": {
      "type": "integer",
      "format": "int64",
      "description": "Grants for this organization that can still be used."
    },
    "blocked": {
      "type": "boolean",
      "description": "Blocked by this organization."
    },
    "client": {
      "type": "string",
      "description": "Internal client identifier."
    },
    "client_id": {
      "type": "string"
    },
    "client_type": {
      "$ref": "#/components/schemas/ClientType"
    },
    "enabled": {
      "type": "boolean",
      "description": "Disabled by an operator for the whole deployment."
    },
    "last_granted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "name": {
      "type": "string",
      "description": "Presentation only: a metadata-document client chooses its own name."
    },
    "source": {
      "$ref": "#/components/schemas/ClientSource"
    },
    "trust": {
      "$ref": "#/components/schemas/ClientTrust"
    }
  }
}
OrganizationClientList
JSON Schema
{
  "type": "object",
  "required": [
    "clients"
  ],
  "properties": {
    "clients": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OrganizationClient"
      }
    }
  }
}
OrganizationClientPolicy
JSON Schema
{
  "type": "object",
  "required": [
    "blocked"
  ],
  "properties": {
    "blocked": {
      "type": "boolean",
      "description": "Block the client for this organization and revoke its grants here."
    }
  },
  "additionalProperties": false
}
OrganizationConfiguration
JSON Schema
{
  "type": "object",
  "required": [
    "enforce_sso"
  ],
  "properties": {
    "connection": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/SsoConnection"
        }
      ]
    },
    "enforce_sso": {
      "type": "boolean"
    },
    "jit_role": {
      "type": [
        "string",
        "null"
      ],
      "description": "The role a person joins with when they sign in without a membership, through the\norganization's own connection or with an email address in one of its verified domains.\n`None` leaves memberships to SCIM and invitations."
    },
    "routing_domain": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
OrganizationLoginPolicy
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "local_login",
    "require_mfa",
    "version"
  ],
  "properties": {
    "guest_role": {
      "type": [
        "string",
        "null"
      ],
      "description": "Explicit custom membership role whose invited, locally managed members may use passwords during enforced SSO."
    },
    "local_login": {
      "$ref": "#/components/schemas/LocalLoginPolicy"
    },
    "organization_id": {
      "type": "string"
    },
    "require_mfa": {
      "type": "boolean"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
OwnedOrganizationCreated
JSON Schema
{
  "type": "object",
  "required": [
    "organization",
    "membership",
    "token",
    "session"
  ],
  "properties": {
    "membership": {
      "$ref": "#/components/schemas/Membership"
    },
    "organization": {
      "$ref": "#/components/schemas/Organization"
    },
    "session": {
      "$ref": "#/components/schemas/Session"
    },
    "token": {
      "type": "string",
      "description": "The owner's session in the new organization."
    }
  }
}
PeoplePage
JSON Schema
{
  "type": "object",
  "required": [
    "items",
    "invitations",
    "delegable_roles"
  ],
  "properties": {
    "delegable_roles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Roles this administrator currently holds sufficient authority to assign."
    },
    "invitations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Invitation"
      }
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PersonRecord"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
PermissionBundle
JSON Schema
{
  "type": "object",
  "properties": {
    "assignments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RoleAssignment"
      }
    },
    "grants": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ResourceGrant"
      }
    },
    "groups": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PermissionGroup"
      }
    },
    "policy": {
      "$ref": "#/components/schemas/PortablePolicy"
    },
    "relationships": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Relationship"
      }
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ManagedResource"
      }
    },
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RoleDefinition"
      }
    },
    "subject_attributes": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/Attributes"
      },
      "propertyNames": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
PermissionChange
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "required": [
        "role",
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "put_role"
          ]
        },
        "role": {
          "$ref": "#/components/schemas/RoleDefinition"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "name",
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "delete_role"
          ]
        },
        "name": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "assignment",
        "kind"
      ],
      "properties": {
        "assignment": {
          "$ref": "#/components/schemas/RoleAssignment"
        },
        "kind": {
          "type": "string",
          "enum": [
            "put_assignment"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "kind"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "delete_assignment"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "group",
        "kind"
      ],
      "properties": {
        "group": {
          "$ref": "#/components/schemas/PermissionGroup"
        },
        "kind": {
          "type": "string",
          "enum": [
            "put_group"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "kind"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "delete_group"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "resource",
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "put_resource"
          ]
        },
        "resource": {
          "$ref": "#/components/schemas/ResourceInput"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "resource",
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "delete_resource"
          ]
        },
        "resource": {
          "$ref": "#/components/schemas/Resource"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "grant",
        "kind"
      ],
      "properties": {
        "grant": {
          "$ref": "#/components/schemas/ResourceGrant"
        },
        "kind": {
          "type": "string",
          "enum": [
            "put_grant"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "kind"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "delete_grant"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "relationship",
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "put_relationship"
          ]
        },
        "relationship": {
          "$ref": "#/components/schemas/Relationship"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "kind"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "delete_relationship"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "attributes",
        "kind"
      ],
      "properties": {
        "attributes": {
          "$ref": "#/components/schemas/AttributeInput"
        },
        "kind": {
          "type": "string",
          "enum": [
            "put_subject_attributes"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "kind"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "migrate_legacy"
          ]
        }
      }
    }
  ]
}
PermissionGroup
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "name",
    "members"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrincipalRef"
      }
    },
    "name": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
PermissionSnapshot
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "revision",
    "policy_version",
    "local",
    "subjects",
    "roles",
    "managed_assignments",
    "managed_groups"
  ],
  "properties": {
    "local": {
      "$ref": "#/components/schemas/PermissionBundle"
    },
    "managed_assignments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AssignmentRecord"
      }
    },
    "managed_groups": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GroupRecord"
      }
    },
    "organization_id": {
      "type": "string"
    },
    "policy_version": {
      "type": "string"
    },
    "revision": {
      "type": "integer",
      "format": "int64"
    },
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RoleRecord"
      }
    },
    "subjects": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SubjectRecord"
      }
    }
  }
}
PersonRecord
JSON Schema
{
  "type": "object",
  "required": [
    "membership",
    "sources",
    "directory_managed",
    "sessions"
  ],
  "properties": {
    "directory_managed": {
      "type": "boolean"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "membership": {
      "$ref": "#/components/schemas/Membership"
    },
    "sessions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Session"
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
Pkce
JSON Schema
{
  "type": "string",
  "description": "Whether a client's authorization requests must use PKCE.",
  "enum": [
    "required",
    "optional"
  ]
}
PolicyComparison
JSON Schema
{
  "type": "object",
  "required": [
    "subject_id",
    "action"
  ],
  "properties": {
    "action": {
      "type": "string"
    },
    "context": {
      "type": "object",
      "additionalProperties": {},
      "propertyNames": {
        "type": "string"
      }
    },
    "resource": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "subject_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
PolicyComparisonResult
JSON Schema
{
  "type": "object",
  "required": [
    "subject_id",
    "action",
    "current",
    "candidate"
  ],
  "properties": {
    "action": {
      "type": "string"
    },
    "candidate": {
      "type": "boolean"
    },
    "current": {
      "type": "boolean"
    },
    "resource": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "subject_id": {
      "type": "string"
    }
  }
}
PolicyEffect
JSON Schema
{
  "type": "string",
  "enum": [
    "allow",
    "deny",
    "require"
  ]
}
PolicyRule
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "effect",
    "actions"
  ],
  "properties": {
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "conditions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Condition"
      }
    },
    "effect": {
      "$ref": "#/components/schemas/PolicyEffect"
    },
    "id": {
      "type": "string"
    },
    "principals": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PrincipalRef"
      }
    },
    "resource_type": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
PolicyVersion
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "base_revision",
    "bundle",
    "status",
    "comparison_count"
  ],
  "properties": {
    "base_revision": {
      "type": "integer",
      "format": "int64"
    },
    "bundle": {
      "$ref": "#/components/schemas/ExportBundle"
    },
    "comparison_count": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "id": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/PolicyVersionStatus"
    }
  }
}
PolicyVersionStatus
JSON Schema
{
  "type": "string",
  "description": "Lifecycle of a drafted policy version. Activating a version retires the previously active one.",
  "enum": [
    "draft",
    "validated",
    "active",
    "retired"
  ]
}
PortablePolicy
JSON Schema
{
  "type": "object",
  "required": [
    "schema_version",
    "combining"
  ],
  "properties": {
    "attribute_rules": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AttributeRule"
      }
    },
    "combining": {
      "type": "string"
    },
    "relations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RelationDefinition"
      }
    },
    "rules": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PolicyRule"
      }
    },
    "schema_version": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
PortalContext
JSON Schema
{
  "type": "object",
  "required": [
    "session",
    "operations",
    "expires_at"
  ],
  "properties": {
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Effective expiry of the administration credential."
    },
    "operations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "session": {
      "$ref": "#/components/schemas/Session"
    }
  }
}
PortalEntry
JSON Schema
{
  "type": "object",
  "required": [
    "entry_url",
    "expires_in"
  ],
  "properties": {
    "entry_url": {
      "type": "string"
    },
    "expires_in": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  }
}
PortalEntryRequest
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "session_token"
  ],
  "properties": {
    "operations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "organization_id": {
      "type": "string"
    },
    "session_token": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
PortalExchange
JSON Schema
{
  "type": "object",
  "required": [
    "code"
  ],
  "properties": {
    "code": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
PortalSession
JSON Schema
{
  "type": "object",
  "required": [
    "credential",
    "session",
    "operations",
    "expires_at"
  ],
  "properties": {
    "credential": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Effective expiry of the administration credential."
    },
    "operations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "session": {
      "$ref": "#/components/schemas/Session"
    }
  }
}
PrincipalRef
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "user"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "service_account"
          ]
        }
      }
    },
    {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "group"
          ]
        }
      }
    }
  ]
}
PrincipalType
JSON Schema
{
  "type": "string",
  "enum": [
    "user",
    "service_account"
  ]
}
ProviderDescriptor
JSON Schema
{
  "type": "object",
  "required": [
    "provider",
    "capabilities"
  ],
  "properties": {
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "provider": {
      "type": "string"
    }
  }
}
RecoveryIssued
JSON Schema
{
  "type": "object",
  "required": [
    "expires_at",
    "emailed"
  ],
  "properties": {
    "emailed": {
      "type": "boolean"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "reset_url": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
RecoveryRequest
JSON Schema
{
  "type": "object",
  "properties": {
    "reset_factors": {
      "type": "boolean",
      "description": "Also remove the authenticator and recovery codes, for a holder who lost them."
    },
    "send_email": {
      "type": "boolean",
      "description": "Email the reset link to the account's address. Without email, give the returned link to\nthe verified holder directly."
    }
  },
  "additionalProperties": false
}
RefreshTokens
JSON Schema
{
  "type": "string",
  "description": "Whether a client receives refresh tokens, and whether they may outlive the browser session.",
  "enum": [
    "disabled",
    "session",
    "offline"
  ]
}
RegisterDirectorySchema
JSON Schema
{
  "type": "object",
  "required": [
    "schema"
  ],
  "properties": {
    "expected_version": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64"
    },
    "schema": {
      "$ref": "#/components/schemas/DirectorySchema"
    }
  },
  "additionalProperties": false
}
RelationDefinition
JSON Schema
{
  "type": "object",
  "required": [
    "name",
    "actions"
  ],
  "properties": {
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "inherit": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
Relationship
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "from",
    "relation",
    "to"
  ],
  "properties": {
    "from": {
      "$ref": "#/components/schemas/NodeRef"
    },
    "id": {
      "type": "string"
    },
    "relation": {
      "type": "string"
    },
    "to": {
      "$ref": "#/components/schemas/NodeRef"
    }
  },
  "additionalProperties": false
}
ReplayRequest
JSON Schema
{
  "type": "object",
  "required": [
    "event_id"
  ],
  "properties": {
    "event_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ResolvedAlias
JSON Schema
{
  "type": "object",
  "required": [
    "user_id"
  ],
  "properties": {
    "user_id": {
      "type": "string"
    }
  }
}
Resource
JSON Schema
{
  "type": "object",
  "required": [
    "type",
    "id"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ResourceCreated
JSON Schema
{
  "type": "object",
  "required": [
    "resource"
  ],
  "properties": {
    "delivery_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "introspection_secret": {
      "type": [
        "string",
        "null"
      ],
      "description": "The resource server's introspection secret; its username is the resource ID. Shown once."
    },
    "resource": {
      "$ref": "#/components/schemas/OAuthResource"
    }
  }
}
ResourceGrant
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "principal",
    "resource",
    "actions"
  ],
  "properties": {
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "id": {
      "type": "string"
    },
    "inherit": {
      "type": "boolean"
    },
    "principal": {
      "$ref": "#/components/schemas/PrincipalRef"
    },
    "resource": {
      "$ref": "#/components/schemas/Resource"
    }
  },
  "additionalProperties": false
}
ResourceInput
JSON Schema
{
  "type": "object",
  "required": [
    "resource"
  ],
  "properties": {
    "attributes": {
      "type": "object",
      "additionalProperties": {},
      "propertyNames": {
        "type": "string"
      }
    },
    "parent": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    },
    "resource": {
      "$ref": "#/components/schemas/Resource"
    },
    "ttl_seconds": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  },
  "additionalProperties": false
}
ResourceList
JSON Schema
{
  "type": "object",
  "required": [
    "resources"
  ],
  "properties": {
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OAuthResource"
      }
    }
  }
}
ResourceSettings
JSON Schema
{
  "type": "object",
  "required": [
    "uri",
    "name",
    "scopes"
  ],
  "properties": {
    "machine_access": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ScopeDefinition"
      }
    },
    "tool_permissions": {
      "type": "object",
      "description": "For an MCP server: the permission each tool needs, by tool name. The resource's AuthZEN\nevaluation endpoint permits a `tools/call` only when the person holds that permission in\nthe organization they approved, and refuses a tool missing from this map.",
      "additionalProperties": {
        "type": "string"
      },
      "propertyNames": {
        "type": "string"
      }
    },
    "uri": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ResourceState
JSON Schema
{
  "type": "object",
  "required": [
    "resource_type",
    "resource_id",
    "version",
    "deleted",
    "data"
  ],
  "properties": {
    "data": {},
    "deleted": {
      "type": "boolean"
    },
    "resource_id": {
      "type": "string"
    },
    "resource_type": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
RevocationReceipt
JSON Schema
{
  "type": "object",
  "required": [
    "sessions",
    "exchanges"
  ],
  "properties": {
    "exchanges": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "sessions": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    }
  }
}
RevokeGrants
JSON Schema
{
  "type": "object",
  "properties": {
    "client": {
      "type": [
        "string",
        "null"
      ],
      "description": "Internal client ID."
    },
    "grant_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "organization_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "resource": {
      "type": [
        "string",
        "null"
      ]
    },
    "user_id": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false
}
RevokeSessions
JSON Schema
{
  "type": "object",
  "required": [
    "user_id"
  ],
  "properties": {
    "session_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "user_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
RevokedGrants
JSON Schema
{
  "type": "object",
  "required": [
    "revoked"
  ],
  "properties": {
    "revoked": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    }
  }
}
RoleAssignment
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "principal",
    "role"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "inherit": {
      "type": "boolean"
    },
    "principal": {
      "$ref": "#/components/schemas/PrincipalRef"
    },
    "role": {
      "type": "string"
    },
    "scope": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Resource"
        }
      ]
    }
  },
  "additionalProperties": false
}
RoleDefinition
JSON Schema
{
  "type": "object",
  "required": [
    "name",
    "permissions"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
RoleRecord
JSON Schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/RoleDefinition"
    },
    {
      "type": "object",
      "required": [
        "version",
        "source"
      ],
      "properties": {
        "source": {
          "$ref": "#/components/schemas/RoleSource"
        },
        "version": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  ]
}
RoleSource
JSON Schema
{
  "type": "string",
  "description": "Who defines a stored role.",
  "enum": [
    "local",
    "bootstrap",
    "legacy"
  ]
}
RotateKey
JSON Schema
{
  "type": "object",
  "properties": {
    "publish_seconds": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Seconds before the new key signs. Defaults to the configured publication delay; relying\nparties need that long to see it in the key set.",
      "minimum": 0
    }
  },
  "additionalProperties": false
}
RotateMachineKey
JSON Schema
{
  "type": "object",
  "required": [
    "overlap_seconds"
  ],
  "properties": {
    "overlap_seconds": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  },
  "additionalProperties": false
}
RotationRequest
JSON Schema
{
  "type": "object",
  "required": [
    "expected_version",
    "overlap_seconds"
  ],
  "properties": {
    "expected_version": {
      "type": "integer",
      "format": "int64"
    },
    "overlap_seconds": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    }
  },
  "additionalProperties": false
}
SamlServiceProvider
JSON Schema
{
  "type": "object",
  "required": [
    "entity_id",
    "acs_url"
  ],
  "properties": {
    "acs_url": {
      "type": "string",
      "description": "The assertion consumer service URL, which receives HTTP-POST responses."
    },
    "entity_id": {
      "type": "string",
      "description": "The SP entity ID, which is also the metadata URL."
    }
  }
}
ScimAttribute
JSON Schema
{
  "type": "object",
  "required": [
    "name",
    "type"
  ],
  "properties": {
    "caseExact": {
      "type": "boolean"
    },
    "multiValued": {
      "type": "boolean"
    },
    "mutability": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "required": {
      "type": "boolean"
    },
    "returned": {
      "type": "string"
    },
    "subAttributes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ScimAttribute"
      }
    },
    "type": {
      "type": "string"
    },
    "uniqueness": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ScimErrorDocument
JSON Schema
{
  "type": "object",
  "required": [
    "schemas",
    "status",
    "detail"
  ],
  "properties": {
    "detail": {
      "type": "string"
    },
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scimType": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    }
  }
}
ScimPatch
JSON Schema
{
  "type": "object",
  "required": [
    "schemas",
    "Operations"
  ],
  "properties": {
    "Operations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ScimPatchOperation"
      }
    },
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
ScimPatchOperation
JSON Schema
{
  "type": "object",
  "required": [
    "op"
  ],
  "properties": {
    "op": {
      "type": "string"
    },
    "path": {
      "type": [
        "string",
        "null"
      ]
    },
    "value": {}
  }
}
ScimResourceKind
JSON Schema
{
  "type": "string",
  "description": "A SCIM resource type a directory provisions.",
  "enum": [
    "User",
    "Group"
  ]
}
ScopeDefinition
JSON Schema
{
  "type": "object",
  "required": [
    "name",
    "description"
  ],
  "properties": {
    "description": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  }
}
SearchKind
JSON Schema
{
  "type": "string",
  "enum": [
    "resources",
    "subjects",
    "actions"
  ]
}
SecretIssued
JSON Schema
{
  "type": "object",
  "required": [
    "secret"
  ],
  "properties": {
    "secret": {
      "type": "string",
      "description": "Shown once; only its hash is stored."
    }
  }
}
ServiceAccount
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "organization_id",
    "name",
    "description",
    "enabled",
    "credential_epoch",
    "version",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "credential_epoch": {
      "type": "integer",
      "format": "int64"
    },
    "description": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "retired_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
ServiceAccountSettings
JSON Schema
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "description": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
ServiceProviderDetails
JSON Schema
{
  "type": "object",
  "description": "What a customer's identity provider needs to know about this deployment.",
  "required": [
    "oidc_redirect_uris"
  ],
  "properties": {
    "oidc_redirect_uris": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Redirect URIs to register at a customer OIDC provider: sign-in first, then login tests."
    },
    "saml": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/SamlServiceProvider",
          "description": "The native SAML service provider. `None` when the deployment's identity broker serves SAML."
        }
      ]
    }
  }
}
Session
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "user_id",
    "organization_id",
    "created_at",
    "expires_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "user_id": {
      "type": "string"
    }
  }
}
SessionIssued
JSON Schema
{
  "type": "object",
  "required": [
    "token",
    "session"
  ],
  "properties": {
    "session": {
      "$ref": "#/components/schemas/Session"
    },
    "token": {
      "type": "string"
    }
  }
}
SetErrorDocument
JSON Schema
{
  "type": "object",
  "description": "Schema of the body that `SetError` produces.",
  "required": [
    "err",
    "description"
  ],
  "properties": {
    "description": {
      "type": "string"
    },
    "err": {
      "type": "string"
    }
  }
}
SigningKey
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "created_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "id": {
      "type": "string"
    }
  }
}
SnapshotRequest
JSON Schema
{
  "type": "object",
  "properties": {
    "types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
SsoConnection
JSON Schema
{
  "oneOf": [
    {
      "type": "object",
      "required": [
        "subject_attribute",
        "protocol"
      ],
      "properties": {
        "metadata_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public HTTPS address of the identity provider's metadata. While the version is active,\nthe runtime fetches it every hour and applies changed signing certificates on its own.\nA change to the entity ID or sign-in URL still needs a new tested draft."
        },
        "metadata_xml": {
          "type": "string",
          "description": "The identity provider's metadata. Leave it empty when `metadata_url` is set: the runtime\nfetches the document when the draft is saved and stores it here."
        },
        "protocol": {
          "type": "string",
          "enum": [
            "saml"
          ]
        },
        "subject_attribute": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "required": [
        "issuer",
        "client_id",
        "client_secret_ref",
        "subject_claim",
        "protocol"
      ],
      "properties": {
        "client_id": {
          "type": "string"
        },
        "client_secret_ref": {
          "type": "string"
        },
        "issuer": {
          "type": "string"
        },
        "protocol": {
          "type": "string",
          "enum": [
            "oidc"
          ]
        },
        "subject_claim": {
          "type": "string"
        },
        "upstream_idp": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  ]
}
StartDiscovery
JSON Schema
{
  "type": "object",
  "required": [
    "redirect_uri",
    "state",
    "exchange_challenge"
  ],
  "properties": {
    "exchange_challenge": {
      "type": "string"
    },
    "redirect_uri": {
      "type": "string",
      "description": "One of the application redirect URIs configured for a connection of the service's\norganizations."
    },
    "state": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
StartLogin
JSON Schema
{
  "type": "object",
  "required": [
    "organization_id",
    "connection_id",
    "redirect_uri",
    "state",
    "exchange_challenge"
  ],
  "properties": {
    "connection_id": {
      "type": "string"
    },
    "exchange_challenge": {
      "type": "string"
    },
    "invitation_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "For the local connection under the invitation registration policy: the invitation token\nthat permits registration with the invited address."
    },
    "organization_id": {
      "type": "string"
    },
    "redirect_uri": {
      "type": "string"
    },
    "signup": {
      "type": "boolean",
      "description": "For the local connection: open the registration page instead of sign-in."
    },
    "state": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
StartOnboarding
JSON Schema
{
  "type": "object",
  "required": [
    "connection_id",
    "redirect_uri",
    "state",
    "exchange_challenge"
  ],
  "properties": {
    "connection_id": {
      "type": "string",
      "description": "The local authentication connection ID."
    },
    "exchange_challenge": {
      "type": "string"
    },
    "redirect_uri": {
      "type": "string"
    },
    "signup": {
      "type": "boolean",
      "description": "Open the registration page instead of sign-in."
    },
    "state": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
StreamStatus
JSON Schema
{
  "type": "object",
  "required": [
    "receiver_id",
    "stream_id",
    "verified",
    "verification_pending"
  ],
  "properties": {
    "receiver_id": {
      "type": "string"
    },
    "stream_id": {
      "type": "string"
    },
    "verification_pending": {
      "type": "boolean"
    },
    "verified": {
      "type": "boolean"
    }
  }
}
SubjectRecord
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "active"
  ],
  "properties": {
    "active": {
      "type": "boolean"
    },
    "directory_links": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/DirectoryIdentity"
      }
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "string"
    },
    "principal_type": {
      "$ref": "#/components/schemas/PrincipalType"
    }
  }
}
Subscription
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "organization_id",
    "label",
    "endpoint",
    "event_types",
    "enabled",
    "include_profile",
    "version",
    "created_at",
    "signing_keys"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "enabled": {
      "type": "boolean"
    },
    "endpoint": {
      "type": "string"
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "id": {
      "type": "string"
    },
    "include_profile": {
      "type": "boolean"
    },
    "label": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "signing_keys": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SigningKey"
      }
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
SubscriptionInput
JSON Schema
{
  "type": "object",
  "required": [
    "label",
    "endpoint",
    "event_types"
  ],
  "properties": {
    "endpoint": {
      "type": "string"
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "include_profile": {
      "type": "boolean",
      "description": "Add each user's current email, verification, display name and external ID under\n`data.profile` in user events. A service needs the `profiles:read` scope to turn it on."
    },
    "label": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
SubscriptionRevoke
JSON Schema
{
  "type": "object",
  "required": [
    "expected_version"
  ],
  "properties": {
    "expected_version": {
      "type": "integer",
      "format": "int64"
    }
  },
  "additionalProperties": false
}
SubscriptionUpdate
JSON Schema
{
  "type": "object",
  "required": [
    "expected_version",
    "label",
    "endpoint",
    "event_types",
    "enabled"
  ],
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "endpoint": {
      "type": "string"
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expected_version": {
      "type": "integer",
      "format": "int64"
    },
    "include_profile": {
      "type": "boolean",
      "description": "Add each user's current email, verification, display name and external ID under\n`data.profile` in user events. A service needs the `profiles:read` scope to turn it on."
    },
    "label": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
SynchronizationStatus
JSON Schema
{
  "type": "object",
  "required": [
    "revision",
    "synchronized_revision",
    "pending",
    "maximum_stale_access_seconds"
  ],
  "properties": {
    "maximum_stale_access_seconds": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
    },
    "pending": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "revision": {
      "type": "integer",
      "format": "int64"
    },
    "synchronized_revision": {
      "type": "integer",
      "format": "int64"
    }
  }
}
TenantRecord
JSON Schema
{
  "type": "object",
  "description": "An organization's enterprise administration as stored.",
  "required": [
    "organization_id",
    "customer_connection_id",
    "recovery_connection_id",
    "source",
    "enabled_at",
    "enabled_by"
  ],
  "properties": {
    "customer_connection_id": {
      "type": "string"
    },
    "enabled_at": {
      "type": "string",
      "format": "date-time"
    },
    "enabled_by": {
      "type": "string"
    },
    "infrastructure": {
      "type": [
        "string",
        "null"
      ],
      "description": "The identity broker profile, or `None` for native SAML."
    },
    "organization_id": {
      "type": "string"
    },
    "recovery_connection_id": {
      "type": "string"
    },
    "source": {
      "$ref": "#/components/schemas/TenantSource"
    }
  }
}
TenantSource
JSON Schema
{
  "type": "string",
  "description": "Where an organization's enterprise administration was turned on.",
  "enum": [
    "config",
    "operator"
  ]
}
UpdateLoginPolicy
JSON Schema
{
  "type": "object",
  "required": [
    "local_login",
    "require_mfa",
    "expected_version"
  ],
  "properties": {
    "expected_version": {
      "type": "integer",
      "format": "int64",
      "description": "The version the caller read. A concurrent change fails with a conflict."
    },
    "guest_role": {
      "type": [
        "string",
        "null"
      ],
      "description": "Explicit custom membership role whose invited, locally managed members may use passwords during enforced SSO."
    },
    "local_login": {
      "$ref": "#/components/schemas/LocalLoginPolicy"
    },
    "require_mfa": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
UpdateServiceAccount
JSON Schema
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ServiceAccountSettings"
    },
    {
      "type": "object",
      "required": [
        "expected_version"
      ],
      "properties": {
        "expected_version": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  ]
}
User
JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "Only a verified upstream email is retained."
    },
    "external_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The vendor application's own ID for this user, when the user import API set one."
    },
    "id": {
      "type": "string"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
UserAliasMapping
JSON Schema
{
  "type": "object",
  "description": "One reviewed association between a product's record and an existing canonical user.",
  "required": [
    "external_id",
    "user_id"
  ],
  "properties": {
    "external_id": {
      "type": "string"
    },
    "user_id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
UserAliasReport
JSON Schema
{
  "type": "object",
  "required": [
    "results"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserAliasResult"
      },
      "description": "Every row must be ready or already linked before any alias is applied."
    }
  }
}
UserAliasResult
JSON Schema
{
  "type": "object",
  "required": [
    "external_id",
    "user_id",
    "status"
  ],
  "properties": {
    "existing_user_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The canonical user holding this product alias before the reviewed batch, when one exists."
    },
    "external_id": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/UserAliasStatus"
    },
    "user_id": {
      "type": "string"
    }
  }
}
UserAliasReview
JSON Schema
{
  "type": "object",
  "description": "A batch names the product's backend service and the source of the operator's reviewed mappings.",
  "required": [
    "product_id",
    "source",
    "mode",
    "mappings"
  ],
  "properties": {
    "mappings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserAliasMapping"
      }
    },
    "mode": {
      "$ref": "#/components/schemas/AliasReviewMode"
    },
    "product_id": {
      "type": "string"
    },
    "source": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
UserAliasStatus
JSON Schema
{
  "type": "string",
  "enum": [
    "ready",
    "already_linked",
    "unknown_user",
    "conflict",
    "linked"
  ]
}
UserImport
JSON Schema
{
  "type": "object",
  "description": "One user from a vendor application's existing user table.",
  "required": [
    "external_id"
  ],
  "properties": {
    "display_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "The login email address. Without one, the user gets no local account."
    },
    "email_verified": {
      "type": "boolean",
      "description": "The application already verified the address, so the account needs no verification email."
    },
    "external_id": {
      "type": "string",
      "description": "The application's own ID for the user. Importing the same ID again matches the same user."
    },
    "memberships": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ImportMembership"
      }
    },
    "password_hash": {
      "type": [
        "string",
        "null"
      ],
      "description": "A bounded Argon2 PHC or Django PBKDF2-SHA256 hash. A successful local sign-in upgrades a\nlegacy hash to Argon2id at the deployment's configured cost."
    }
  },
  "additionalProperties": false
}
UserImportMode
JSON Schema
{
  "type": "string",
  "description": "Whether an operator import may create a local sign-in method.",
  "enum": [
    "identity_only",
    "local_account"
  ]
}
UserImportOutcome
JSON Schema
{
  "type": "string",
  "description": "How an import found its user.",
  "enum": [
    "created",
    "matched_external_id",
    "matched_email"
  ]
}
UserImportRequest
JSON Schema
{
  "type": "object",
  "required": [
    "users"
  ],
  "properties": {
    "mode": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/UserImportMode",
          "description": "Defaults to local accounts when configured, otherwise identity-only."
        }
      ]
    },
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserImport"
      },
      "description": "At most 500 users. Each one imports on its own, so one failure leaves the others in place."
    }
  },
  "additionalProperties": false
}
UserImportResponse
JSON Schema
{
  "type": "object",
  "required": [
    "results"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserImportResult"
      },
      "description": "One result per requested user, in request order."
    }
  }
}
UserImportResult
JSON Schema
{
  "type": "object",
  "required": [
    "external_id"
  ],
  "properties": {
    "error": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/ErrorDetail"
        }
      ]
    },
    "external_id": {
      "type": "string"
    },
    "imported": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/UserImported",
          "description": "What the import changed. `None` when the user failed."
        }
      ]
    }
  }
}
UserImported
JSON Schema
{
  "type": "object",
  "description": "What an import changed for one user.",
  "required": [
    "user_id",
    "outcome",
    "password_set",
    "memberships_added"
  ],
  "properties": {
    "memberships_added": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Organizations where the import added a membership. An existing membership keeps its role."
    },
    "outcome": {
      "$ref": "#/components/schemas/UserImportOutcome"
    },
    "password_set": {
      "type": "boolean",
      "description": "The import installed the password hash. An existing password is never replaced."
    },
    "user_id": {
      "type": "string"
    }
  }
}
VendorResource
JSON Schema
{
  "type": "object",
  "description": "One resource's current state in the vendor-wide listing.",
  "required": [
    "organization_id",
    "resource_type",
    "resource_id",
    "version",
    "deleted",
    "data"
  ],
  "properties": {
    "data": {},
    "deleted": {
      "type": "boolean"
    },
    "organization_id": {
      "type": "string"
    },
    "resource_id": {
      "type": "string"
    },
    "resource_type": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    }
  }
}
VendorStatePage
JSON Schema
{
  "type": "object",
  "required": [
    "items",
    "checkpoint"
  ],
  "properties": {
    "checkpoint": {
      "type": "string",
      "description": "A feed cursor at the position the listing started at. After the last page, poll\n`GET /v1/events` from it with the same `types` and apply only events whose\n`resourceversion` is newer than the stored resource's version."
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VendorResource"
      },
      "description": "Current resources, tombstones included, ordered by organization, type and ID."
    },
    "next_page_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `page_token` for the next page. `None` on the last page."
    }
  }
}
VendorSubscription
JSON Schema
{
  "type": "object",
  "description": "A webhook that tells a service to poll the vendor-wide feed.",
  "required": [
    "id",
    "service_id",
    "label",
    "endpoint",
    "created_at",
    "failures"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "endpoint": {
      "type": "string"
    },
    "failures": {
      "type": "integer",
      "format": "int32",
      "description": "Failed notices since the last success."
    },
    "id": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "last_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_http_status": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "service_id": {
      "type": "string"
    }
  }
}
VendorSubscriptionInput
JSON Schema
{
  "type": "object",
  "required": [
    "label",
    "endpoint"
  ],
  "properties": {
    "endpoint": {
      "type": "string",
      "description": "Receives a signed `events.available` notice when the service's organizations have new\nevents, at most about once a second."
    },
    "label": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
VerifiedLogin
JSON Schema
{
  "type": "object",
  "description": "A verified sign-in for an application that keeps its own users and sessions.",
  "required": [
    "user",
    "organization_id",
    "connection_id",
    "authenticated_at",
    "amr"
  ],
  "properties": {
    "acr": {
      "type": [
        "string",
        "null"
      ],
      "description": "Authentication context class, when the identity provider reported one."
    },
    "amr": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Authentication methods (RFC 8176), such as `pwd`, `otp` or `hwk`, when the sign-in reported them."
    },
    "authenticated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the identity provider or local connection verified the user."
    },
    "connection_id": {
      "type": "string",
      "description": "The connection the user signed in with."
    },
    "membership": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/Membership",
          "description": "The user's membership in the organization, or null when the sign-in admitted the user\nwithout one."
        }
      ]
    },
    "organization_id": {
      "type": "string"
    },
    "user": {
      "$ref": "#/components/schemas/User"
    }
  }
}

Search documentation