{
  "openapi": "3.0.3",
  "info": {
    "title": "SyntaxAUTH API",
    "version": "1.0.0",
    "description": "Backend provisioning for one workplace. Obtain an expiring service credential in workplace Settings \u2192 Service credentials. Send `Authorization: Bearer <token>`; no browser cookies or CSRF token are needed. Capabilities: people.read, people.write, groups.read, groups.write. people.write includes deletion. Credentials cannot administer operators or approve MFA recovery. Limits: 120 authenticated requests per credential per minute and 600 per workplace per minute, fixed windows. Other sensitive send limits apply. Responses and credentials must not be cached. This contract excludes domain/application administration, SCIM and webhooks. Existing routes outside this document are unchanged."
  },
  "servers": [
    {
      "url": "https://syntaxauth.com/v1",
      "description": "Production (new features require deployment)"
    },
    {
      "url": "https://staging.syntaxauth.com/v1",
      "description": "Staging"
    }
  ],
  "tags": [
    {
      "name": "People"
    },
    {
      "name": "Groups"
    },
    {
      "name": "Memberships"
    },
    {
      "name": "Email identities"
    },
    {
      "name": "Account actions"
    },
    {
      "name": "Directory sync",
      "description": "Outbound SCIM provisioning, independent of sign-in and SSF. Apple activation remains gated pending live qualification."
    }
  ],
  "security": [
    {
      "serviceCredential": []
    }
  ],
  "paths": {
    "/workplaces/{workplace}/people": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        }
      ],
      "get": {
        "operationId": "listPersons",
        "tags": [
          "People"
        ],
        "summary": "List and search people",
        "description": "Requires `people.read`. Returns up to 25 summaries. No email/contact lookup is performed by q. Selected group members are included with people.read, alongside explicitly selected people. Results are deduplicated; follow next_cursor even if a page is empty.",
        "x-required-capabilities": [
          "people.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourcePage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Query"
          }
        ]
      },
      "post": {
        "operationId": "createPerson",
        "tags": [
          "People"
        ],
        "summary": "Create person",
        "description": "Requires `people.write`. Creates pending_activation. Does not send email or create a managed email identity. Contact email must be a real reachable mailbox. First and last names are explicit; no splitting of name. Duplicate external references return 409.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "201": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedPerson"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePerson"
              },
              "example": {
                "first_name": "Alex",
                "last_name": "Example",
                "contact_email": "alex@example.net",
                "external_reference": {
                  "source": "hr",
                  "id": "employee-123"
                }
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/people/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "get": {
        "operationId": "getPerson",
        "tags": [
          "People"
        ],
        "summary": "Get person",
        "description": "Requires `people.read`. For restricted credentials, an explicitly selected person or current membership in a selected group grants read access.",
        "x-required-capabilities": [
          "people.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Person"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        }
      },
      "patch": {
        "operationId": "updatePerson",
        "tags": [
          "People"
        ],
        "summary": "Update person profile",
        "description": "Requires `people.write`. Update first_name, last_name, or custom_attributes using If-Match with profile.version. Names are derived for display. An attribute map replaces all saved attributes; {} clears it and omission preserves it. Restricted credentials require explicit person selection.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Updated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/ProfileVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePerson"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/people/by-external-reference": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        }
      ],
      "get": {
        "operationId": "findPersonByExternalReference",
        "tags": [
          "People"
        ],
        "summary": "Find by external reference",
        "description": "Requires `people.read`. 404 if no mapping exists; resource restrictions also apply. A deleted person can resolve to its tombstone.",
        "x-required-capabilities": [
          "people.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Person"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Source"
          },
          {
            "$ref": "#/components/parameters/ExternalID"
          }
        ]
      }
    },
    "/workplaces/{workplace}/groups": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        }
      ],
      "get": {
        "operationId": "listGroups",
        "tags": [
          "Groups"
        ],
        "summary": "List and search groups",
        "description": "Requires `groups.read`. Returns up to 25 summaries. No email/contact lookup is performed by q.",
        "x-required-capabilities": [
          "groups.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourcePage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Query"
          }
        ]
      },
      "post": {
        "operationId": "createGroup",
        "tags": [
          "Groups"
        ],
        "summary": "Create group",
        "description": "Requires `groups.write`. Creates an active group; duplicate external references return 409.",
        "x-required-capabilities": [
          "groups.write"
        ],
        "responses": {
          "201": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGroup"
              },
              "example": {
                "name": "Engineering",
                "external_reference": {
                  "source": "hr",
                  "id": "team-1"
                }
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/groups/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "get": {
        "operationId": "getGroup",
        "tags": [
          "Groups"
        ],
        "summary": "Get group",
        "description": "Requires `groups.read`. ",
        "x-required-capabilities": [
          "groups.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        }
      },
      "patch": {
        "operationId": "updateGroup",
        "tags": [
          "Groups"
        ],
        "summary": "Rename, disable or restore group",
        "description": "Requires `groups.write`. status is active or disabled. Memberships remain when disabled. Groups are disabled rather than hard-deleted in this release.",
        "x-required-capabilities": [
          "groups.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Updated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/GroupVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateGroup"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/groups/by-external-reference": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        }
      ],
      "get": {
        "operationId": "findGroupByExternalReference",
        "tags": [
          "Groups"
        ],
        "summary": "Find by external reference",
        "description": "Requires `groups.read`. 404 if no mapping exists; resource restrictions also apply. A deleted person can resolve to its tombstone.",
        "x-required-capabilities": [
          "groups.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Source"
          },
          {
            "$ref": "#/components/parameters/ExternalID"
          }
        ]
      }
    },
    "/workplaces/{workplace}/people/{id}/suspend": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "post": {
        "operationId": "suspendPerson",
        "tags": [
          "People"
        ],
        "summary": "Suspend person",
        "description": "Requires `people.write`. No body required. Suspension is immediate and preserves prior pending/active status for restore. Session revocation advances the security version.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Updated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/PersonVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ]
      }
    },
    "/workplaces/{workplace}/people/{id}/restore": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "post": {
        "operationId": "restorePerson",
        "tags": [
          "People"
        ],
        "summary": "Restore person",
        "description": "Requires `people.write`. No body required. Suspension is immediate and preserves prior pending/active status for restore. Session revocation advances the security version.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Updated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/PersonVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ]
      }
    },
    "/workplaces/{workplace}/people/{id}/revoke-sessions": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "post": {
        "operationId": "revoke_sessionsPerson",
        "tags": [
          "People"
        ],
        "summary": "Revoke person sessions",
        "description": "Requires `people.write`. No body required. Suspension is immediate and preserves prior pending/active status for restore. Session revocation advances the security version.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Updated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/PersonVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ]
      }
    },
    "/workplaces/{workplace}/people/{id}/activation": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "post": {
        "operationId": "activationPerson",
        "tags": [
          "Account actions"
        ],
        "summary": "Request activation",
        "description": "Requires `people.write`. Send {} for English, or {\"language\":\"fr\"} / {\"language\":\"es\"}. Language is saved with the queued email and applies to both message alternatives and the linked setup page. Unsupported values return 400; reusing an idempotency key with a different language returns 400. Activation requires pending_activation. Password reset requires an active person with verified contact email. Mail is queued for the contact email; 202 is not delivery or activation confirmation. Limit: 3 per person per 15 minutes and 30 per service credential per workplace per hour. Replays do not send another email.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "202": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationAccepted"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "fr",
                      "es"
                    ],
                    "default": "en",
                    "description": "Language of the email and linked setup page. Omit for English."
                  }
                }
              },
              "examples": {
                "english": {
                  "value": {}
                },
                "french": {
                  "value": {
                    "language": "fr"
                  }
                },
                "spanish": {
                  "value": {
                    "language": "es"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/people/{id}/password-reset": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "post": {
        "operationId": "password_resetPerson",
        "tags": [
          "Account actions"
        ],
        "summary": "Request password reset",
        "description": "Requires `people.write`. Send {} for English, or {\"language\":\"fr\"} / {\"language\":\"es\"}. Language is saved with the queued email and applies to both message alternatives and the linked setup page. Unsupported values return 400; reusing an idempotency key with a different language returns 400. Activation requires pending_activation. Password reset requires an active person with verified contact email. Mail is queued for the contact email; 202 is not delivery or activation confirmation. Limit: 3 per person per 15 minutes and 30 per service credential per workplace per hour. Replays do not send another email.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "202": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationAccepted"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "fr",
                      "es"
                    ],
                    "default": "en",
                    "description": "Language of the email and linked setup page. Omit for English."
                  }
                }
              },
              "examples": {
                "english": {
                  "value": {}
                },
                "french": {
                  "value": {
                    "language": "fr"
                  }
                },
                "spanish": {
                  "value": {
                    "language": "es"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/people/{id}/deletion": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "post": {
        "operationId": "deletePerson",
        "tags": [
          "People"
        ],
        "summary": "Request person deletion",
        "description": "Requires `people.write`. Immediately revokes local access and starts the existing retirement/retention workflow. Service credentials with people.write are authorized; console sessions still require fresh Admin MFA. Purge eligibility starts after 30 days; completion depends on workers. Irreversible through the ordinary restore action.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "202": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deletion"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/PersonVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeletePerson"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getPersonDeletion",
        "tags": [
          "People"
        ],
        "summary": "Get deletion progress",
        "description": "Requires `people.read`. ",
        "x-required-capabilities": [
          "people.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deletion"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        }
      }
    },
    "/workplaces/{workplace}/people/{id}/email-identities": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "get": {
        "operationId": "listEmailIdentities",
        "tags": [
          "Email identities"
        ],
        "summary": "List email identities",
        "description": "Requires `people.read`. ",
        "x-required-capabilities": [
          "people.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ]
      },
      "post": {
        "operationId": "createEmailIdentity",
        "tags": [
          "Email identities"
        ],
        "summary": "Assign workplace email identity",
        "description": "Requires `people.write`. Domain ID must be configured by an administrator and currently verified. Address must match that domain. A mailbox is not required. A restricted credential must allow both the person and domain.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "201": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailIdentity"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEmailIdentity"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/email-identities/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "patch": {
        "operationId": "updateEmailIdentity",
        "tags": [
          "Email identities"
        ],
        "summary": "Rename email identity",
        "description": "Requires `people.write`. Address must remain on the same currently verified domain. Does not change the contact email. Replays return the current identity representation.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailIdentity"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/EmailGeneration"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEmailIdentity"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteEmailIdentity",
        "tags": [
          "Email identities"
        ],
        "summary": "Delete email identity",
        "description": "Requires `people.write`. No body required. Permanently removes an active or disabled identity from the person and releases its email address. Retains an address-free identity tombstone and historical application subjects for revocation. Other identities and the person are unchanged. Reassigning the address creates a new identity. Replays return the current tombstone representation.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailIdentity"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/EmailGeneration"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ]
      }
    },
    "/workplaces/{workplace}/email-identities/{id}/disable": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "post": {
        "operationId": "disableEmailIdentity",
        "tags": [
          "Email identities"
        ],
        "summary": "Disable email identity",
        "description": "Requires `people.write`. No body required. Disables this sign-in identity, not the person. Replays return the current identity representation.",
        "x-required-capabilities": [
          "people.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailIdentity"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/EmailGeneration"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ]
      }
    },
    "/workplaces/{workplace}/groups/{id}/members": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "get": {
        "operationId": "listGroupMembers",
        "tags": [
          "Memberships"
        ],
        "summary": "List group members",
        "description": "Requires `groups.read`. Returns person IDs, names, statuses and person versions. A selected group includes all of its members; separate person selections are not required.",
        "x-required-capabilities": [
          "groups.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ]
      }
    },
    "/workplaces/{workplace}/groups/{group}/members/{person}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "group",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        },
        {
          "name": "person",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "put": {
        "operationId": "addGroupMember",
        "tags": [
          "Memberships"
        ],
        "summary": "Add group member",
        "description": "Requires `groups.write`. No body required. If-Match refers to the PERSON, not the group. Restricted credentials must allow the group; the person need not be selected separately but must already exist in the same workplace. Unrelated memberships are preserved. Adding requires an active group.",
        "x-required-capabilities": [
          "groups.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Updated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/PersonVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ]
      },
      "delete": {
        "operationId": "removeGroupMember",
        "tags": [
          "Memberships"
        ],
        "summary": "Remove group member",
        "description": "Requires `groups.write`. No body required. If-Match refers to the PERSON, not the group. Restricted credentials must allow the group; the person need not be selected separately but must already exist in the same workplace. Unrelated memberships are preserved. Adding requires an active group.",
        "x-required-capabilities": [
          "groups.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Updated"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/PersonVersion"
          },
          {
            "$ref": "#/components/parameters/IdempotencyOptional"
          }
        ]
      }
    },
    "/workplaces/{workplace}/operations/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "description": "Resource ID."
        }
      ],
      "get": {
        "operationId": "getAccountOperation",
        "tags": [
          "Account actions"
        ],
        "summary": "Get account operation",
        "description": "Requires `people.read`. Returns credential-operation state, not an email delivery receipt. Poll with backoff. complete means the person completed the credential operation. Person-scoped restrictions apply.",
        "x-required-capabilities": [
          "people.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        }
      }
    },
    "/workplaces/{workplace}/authentication-policies": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        }
      ],
      "get": {
        "operationId": "listAuthenticationPolicies",
        "tags": [
          "People"
        ],
        "summary": "List available authentication policies",
        "description": "Requires `people.read`. ",
        "x-required-capabilities": [
          "people.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "schema": {
                  "type": "string"
                },
                "description": "Server-generated support correlation ID."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        }
      ],
      "get": {
        "operationId": "listProvisioningConnections",
        "tags": [
          "Directory sync"
        ],
        "summary": "List directory connections",
        "description": "Requires `provisioning.read`. ",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningConnectionPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ]
      },
      "post": {
        "operationId": "createProvisioningConnection",
        "tags": [
          "Directory sync"
        ],
        "summary": "Create draft directory connection",
        "description": "Requires `provisioning.write`. Requires workplace-wide connection scope and explicit authority over selected groups/domains/applications. Maximum 16 connections per workplace. No remote mutations occur. Human operators require fresh MFA.",
        "x-required-capabilities": [
          "provisioning.write"
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningAcknowledgment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisioningConfiguration"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "getProvisioningConnection",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read directory connection",
        "description": "Requires `provisioning.read`. Secrets and OAuth state are never returned. Application associations are filtered by application visibility.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningConnection"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": []
      },
      "put": {
        "operationId": "updateProvisioningConnection",
        "tags": [
          "Directory sync"
        ],
        "summary": "Update draft configuration",
        "description": "Requires `provisioning.write`. For enabled connections, use a proposed configuration preview and apply transition. Destination identity, environment and profile are immutable. Fresh human MFA is required.",
        "x-required-capabilities": [
          "provisioning.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningAcknowledgment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          },
          {
            "$ref": "#/components/parameters/ConnectionVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisioningConfiguration"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/credentials": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "put": {
        "operationId": "replaceProvisioningCredential",
        "tags": [
          "Directory sync"
        ],
        "summary": "Replace write-only SCIM bearer credential",
        "description": "Requires `provisioning.credentials.write`. Generic SCIM only. Invalidates connectivity validation and write approval. Test and approve a new preview before remote writes resume. Fresh human MFA required.",
        "x-required-capabilities": [
          "provisioning.credentials.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningAcknowledgment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          },
          {
            "$ref": "#/components/parameters/ConnectionVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisioningCredential"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/authorization-attempts": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "post": {
        "operationId": "prepareProvisioningOAuth",
        "tags": [
          "Directory sync"
        ],
        "summary": "Prepare Apple OAuth authorization",
        "description": "Requires `provisioning.credentials.write`. Returns a five-minute console approval URL. An operator with fresh MFA completes the browser-bound PKCE flow. OAuth callbacks are browser endpoints, not service-bearer API calls. Apple lifecycle activation remains gated.",
        "x-required-capabilities": [
          "provisioning.credentials.write"
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningOAuthAttempt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          },
          {
            "$ref": "#/components/parameters/ConnectionVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisioningOAuthInput"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/test": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "post": {
        "operationId": "testProvisioningConnection",
        "tags": [
          "Directory sync"
        ],
        "summary": "Test connectivity and SCIM capabilities",
        "description": "Requires `provisioning.run`. Read-only discovery does not qualify the complete destination lifecycle or prove directory ownership.",
        "x-required-capabilities": [
          "provisioning.run"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningAcknowledgment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": []
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/previews": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "post": {
        "operationId": "startProvisioningPreview",
        "tags": [
          "Directory sync"
        ],
        "summary": "Start sync preview",
        "description": "Requires `provisioning.write`. Connection-wide operations require full affected source authority. Exact identity runs require people.read for each current owner. Preview performs only remote reads. Returns only the run ID, connection ID and preview flag, including idempotent retries. Configuration and progress require a separately authorized GET with provisioning.read.",
        "x-required-capabilities": [
          "provisioning.write"
        ],
        "responses": {
          "202": {
            "description": "Accepted for asynchronous processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningRunAcknowledgment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisioningPreviewInput"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/previews/{run}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        {
          "name": "run",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "getProvisioningPreview",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read sync preview",
        "description": "Requires `provisioning.read`. Restricted readers receive state scoped and coverage visible_items, without connection-wide counts or configuration.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningRun"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": []
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/previews/{run}/items": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        {
          "name": "run",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "listProvisioningPreviewItems",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read visible sync items",
        "description": "Requires `provisioning.read` and `people.read`. Each item additionally requires visibility of its current owner. Follow next_cursor even after an empty page. Restricted pagination traverses authorized people only. Legacy collections may return 503 provisioning_listing_preparing with Retry-After: 15 while their retained history is indexed; retry without advancing the cursor.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningPlanPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ]
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/runs": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "post": {
        "operationId": "startProvisioningRun",
        "tags": [
          "Directory sync"
        ],
        "summary": "Start sync run",
        "description": "Requires `provisioning.run`. Connection-wide operations require full affected source authority. Exact identity runs require people.read for each current owner. Preview performs only remote reads. Returns only the run ID, connection ID and preview flag, including idempotent retries. Configuration and progress require a separately authorized GET with provisioning.read.",
        "x-required-capabilities": [
          "provisioning.run"
        ],
        "responses": {
          "202": {
            "description": "Accepted for asynchronous processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningRunAcknowledgment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisioningRunInput"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/runs/{run}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        {
          "name": "run",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "getProvisioningRun",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read sync run",
        "description": "Requires `provisioning.read`. Restricted readers receive state scoped and coverage visible_items, without connection-wide counts or configuration.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningRun"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": []
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/runs/{run}/items": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        {
          "name": "run",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "listProvisioningRunItems",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read visible sync items",
        "description": "Requires `provisioning.read` and `people.read`. Each item additionally requires visibility of its current owner. Follow next_cursor even after an empty page. Restricted pagination traverses authorized people only. Legacy collections may return 503 provisioning_listing_preparing with Retry-After: 15 while their retained history is indexed; retry without advancing the cursor.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningPlanPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ]
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/transitions": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "post": {
        "operationId": "transitionProvisioningConnection",
        "tags": [
          "Directory sync"
        ],
        "summary": "Enable, pause or disconnect directory sync",
        "description": "Requires `provisioning.write`. Enable/resume/apply consume a complete current preview; old source/configuration versions fail closed. Pause continues security-driven deactivation/removal. Disconnect requires acknowledge_unresolved_access=true and removes credentials; it does not disable remaining remote accounts. Deactivate-and-disconnect retains credentials until cleanup completes. Fresh human MFA required.",
        "x-required-capabilities": [
          "provisioning.write"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningAcknowledgment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          },
          {
            "$ref": "#/components/parameters/ConnectionVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisioningTransition"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/matches/{match}/approvals": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        {
          "name": "match",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "post": {
        "operationId": "approveProvisioningMatch",
        "tags": [
          "Directory sync"
        ],
        "summary": "Approve exact account adoption",
        "description": "Requires `provisioning.write`. Explicitly approves the preview source/destination pair. Rechecks source revision, destination version and current people.read/source scope. Fresh human MFA required. Returns only acknowledgment, not full status.",
        "x-required-capabilities": [
          "provisioning.write"
        ],
        "responses": {
          "202": {
            "description": "Accepted for asynchronous processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningIdentity"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          },
          {
            "$ref": "#/components/parameters/ConnectionVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              }
            }
          }
        }
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/identities": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "listProvisioningIdentities",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read visible account readiness",
        "description": "Requires `provisioning.read` and `people.read`, with visibility of each returned identity owner; unbound eligible identities are included. No unfiltered totals. Restricted pagination traverses authorized people only. Legacy collections may return 503 provisioning_listing_preparing with Retry-After: 15 while their retained history is indexed; retry without advancing the cursor.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningIdentityPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ]
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/identities/{identity}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        {
          "name": "identity",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "getProvisioningIdentity",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read exact identity readiness",
        "description": "Requires `provisioning.read`. Requires people.read under current membership/resource restrictions. Unknown and invisible identities return the same 404. Revisions are opaque strings, never numeric counters.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningIdentity"
                },
                "examples": {
                  "pending": {
                    "summary": "Pending",
                    "value": {
                      "identity_id": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                      "connection_id": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
                      "person_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "address": "alex@example.com",
                      "desired_state": "active",
                      "connection_health": "connected",
                      "poll_after_seconds": 15,
                      "state": "pending"
                    }
                  },
                  "synced": {
                    "summary": "Synced",
                    "value": {
                      "identity_id": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                      "connection_id": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
                      "person_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "address": "alex@example.com",
                      "desired_state": "active",
                      "connection_health": "connected",
                      "poll_after_seconds": 15,
                      "state": "synced",
                      "destination_account_id": "scim-user-42"
                    }
                  },
                  "expired_credential": {
                    "summary": "Expired credential",
                    "value": {
                      "identity_id": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                      "connection_id": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
                      "person_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "address": "alex@example.com",
                      "desired_state": "active",
                      "connection_health": "authorization_required",
                      "poll_after_seconds": 15,
                      "state": "pending",
                      "error": {
                        "code": "authorization_required",
                        "message": "The directory credential needs administrator attention.",
                        "retryable": false,
                        "next_action": "Reconnect or replace the credential, test the connection, and approve a new preview."
                      }
                    }
                  },
                  "ambiguous_match": {
                    "summary": "Ambiguous match",
                    "value": {
                      "identity_id": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                      "connection_id": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
                      "person_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "address": "alex@example.com",
                      "desired_state": "active",
                      "connection_health": "connected",
                      "poll_after_seconds": 15,
                      "state": "needs_attention",
                      "reason_code": "ambiguous_match",
                      "error": {
                        "code": "ambiguous_match",
                        "message": "An existing destination account needs review.",
                        "retryable": false,
                        "next_action": "Review the exact account match in a preview and explicitly approve adoption if appropriate."
                      }
                    }
                  },
                  "pending_deactivation": {
                    "summary": "Pending deactivation",
                    "value": {
                      "identity_id": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                      "connection_id": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
                      "person_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "address": "alex@example.com",
                      "desired_state": "disabled",
                      "connection_health": "connected",
                      "poll_after_seconds": 15,
                      "state": "deactivation_pending",
                      "destination_account_id": "scim-user-42",
                      "reason_code": "source_disabled"
                    }
                  },
                  "synced_awaiting_activation": {
                    "summary": "Provisioned account awaiting SyntaxAUTH credential activation",
                    "value": {
                      "identity_id": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
                      "connection_id": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
                      "person_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                      "address": "alex@example.com",
                      "desired_state": "active",
                      "connection_health": "connected",
                      "poll_after_seconds": 15,
                      "state": "synced",
                      "account_setup": "awaiting_activation"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": []
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/groups": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "get": {
        "operationId": "listProvisioningGroups",
        "tags": [
          "Directory sync"
        ],
        "summary": "Read managed group readiness",
        "description": "Requires `provisioning.read`. Requires groups.read per source group. Does not expose member lists. Group export is supported by the generic profile only.",
        "x-required-capabilities": [
          "provisioning.read"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisioningGroupPage"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ]
      }
    },
    "/workplaces/{workplace}/provisioning/connections/{connection}/associations/{application}/qualification": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Workplace"
        },
        {
          "name": "connection",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        {
          "name": "application",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        }
      ],
      "post": {
        "operationId": "qualifyProvisioningAssociation",
        "tags": [
          "Directory sync"
        ],
        "summary": "Verify a provisioned account and federated sign-in match",
        "description": "Requires provisioning.write, current access to the person and application, and fresh human MFA. The administrator must verify that a real federated sign-in reached the exact provisioned destination account using userName correlation. The server checks existing token issuance history and the current remote account. This does not create token issuance evidence. Requalification is required after application or connection credential changes.",
        "x-required-capabilities": [
          "provisioning.write"
        ],
        "responses": {
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "412": {
            "$ref": "#/components/responses/Error412"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          },
          "200": {
            "description": "Qualification recorded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "qualified"
                  ],
                  "properties": {
                    "qualified": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyRequired"
          },
          {
            "$ref": "#/components/parameters/ConnectionVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "identity_id",
                  "destination_account_id",
                  "correlation",
                  "confirmed_same_account"
                ],
                "properties": {
                  "identity_id": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{32}$"
                  },
                  "destination_account_id": {
                    "type": "string"
                  },
                  "correlation": {
                    "type": "string",
                    "enum": [
                      "userName"
                    ]
                  },
                  "confirmed_same_account": {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ExternalReference": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "source",
          "id"
        ],
        "additionalProperties": false,
        "description": "Immutable integration namespace and opaque external ID. Unique per workplace and resource kind. Choose a stable source across credential rotations. This is correlation, not an authorization boundary. Do not include secrets or personal data. Claims remain reserved after deletion."
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ]
      },
      "Updated": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "updated"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "CreatedPerson": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          }
        },
        "required": [
          "id",
          "status",
          "version"
        ]
      },
      "CreatePerson": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "maxLength": 200,
            "description": "At most 200 UTF-8 bytes; no CR, LF or NUL.",
            "minLength": 1
          },
          "last_name": {
            "type": "string",
            "maxLength": 200,
            "description": "At most 200 UTF-8 bytes; no CR, LF or NUL."
          },
          "contact_email": {
            "type": "string",
            "format": "email"
          },
          "authentication_policy": {
            "type": "string",
            "enum": [
              "password_simple",
              "password_standard",
              "password_standard_mfa_required"
            ],
            "default": "password_standard"
          },
          "external_reference": {
            "$ref": "#/components/schemas/ExternalReference"
          },
          "custom_attributes": {
            "$ref": "#/components/schemas/CustomAttributes"
          },
          "managed_identities": {
            "type": "array",
            "maxItems": 10,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "email"
            },
            "description": "Optional managed sign-in addresses on verified domains in this workplace. Person, attributes and identities are created atomically. Domain resource restrictions apply. No activation email is sent."
          }
        },
        "required": [
          "first_name",
          "contact_email"
        ],
        "additionalProperties": false
      },
      "UpdatePerson": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "maxLength": 200,
            "description": "At most 200 UTF-8 bytes; no CR, LF or NUL.",
            "minLength": 1
          },
          "last_name": {
            "type": "string",
            "maxLength": 200,
            "description": "At most 200 UTF-8 bytes; no CR, LF or NUL."
          },
          "custom_attributes": {
            "$ref": "#/components/schemas/CustomAttributes"
          }
        },
        "additionalProperties": false,
        "minProperties": 1,
        "description": "Partial profile update. Omitted fields are preserved. custom_attributes replaces the entire map when supplied; {} clears it. first_name cannot be empty, last_name may be cleared. name is derived and is not an accepted input. Requires If-Match with profile.version."
      },
      "Profile": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "workplace_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "name": {
            "type": "string",
            "readOnly": true,
            "description": "Derived from first_name and last_name. Legacy records with neither part set retain their prior label until edited."
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "contact_email": {
            "type": "string"
          },
          "contact_verified": {
            "type": "boolean"
          },
          "contact_generation": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "pending_contact_change": {
            "type": "string"
          },
          "external_reference": {
            "$ref": "#/components/schemas/ExternalReference"
          },
          "custom_attributes": {
            "$ref": "#/components/schemas/CustomAttributes"
          },
          "contact_verification_method": {
            "type": "string",
            "enum": [
              "admin",
              "email"
            ],
            "readOnly": true,
            "description": "How the contact was confirmed: administrator authority or mailbox proof. For pending activation, contact_verified remains false until activation."
          }
        },
        "required": [
          "id",
          "workplace_id",
          "name",
          "contact_email",
          "contact_verified",
          "version"
        ]
      },
      "Person": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "workplace_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending_activation",
              "active",
              "suspended",
              "deleting",
              "deleted"
            ]
          },
          "authentication_policy": {
            "type": "string"
          },
          "pending_operation": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "profile": {
            "$ref": "#/components/schemas/Profile"
          },
          "group_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        },
        "required": [
          "id",
          "workplace_id",
          "status",
          "version",
          "profile",
          "group_ids"
        ]
      },
      "Summary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "workplace_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "people",
              "groups"
            ]
          }
        },
        "required": [
          "id",
          "workplace_id",
          "name",
          "status",
          "kind"
        ]
      },
      "ResourcePage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Summary"
            }
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "CreateGroup": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "At most 200 UTF-8 bytes; no CR, LF or NUL."
          },
          "external_reference": {
            "$ref": "#/components/schemas/ExternalReference"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "UpdateGroup": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "At most 200 UTF-8 bytes; no CR, LF or NUL."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          }
        },
        "additionalProperties": false
      },
      "Group": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "workplace_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "external_reference": {
            "$ref": "#/components/schemas/ExternalReference"
          },
          "provisioning_changed_at": {
            "type": "integer",
            "format": "int64",
            "readOnly": true,
            "description": "Time of the latest source change relevant to directory synchronization, in Unix seconds. Omitted for records without a tracked change."
          }
        },
        "required": [
          "id",
          "workplace_id",
          "name",
          "status",
          "version"
        ]
      },
      "GroupMember": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "version"
        ]
      },
      "MemberPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupMember"
            }
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "EmailIdentity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "workplace_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "person_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "domain_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "address": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled",
              "deleted"
            ]
          },
          "mailbox_verified": {
            "type": "boolean"
          },
          "generation": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "provisioning_changed_at": {
            "type": "integer",
            "format": "int64",
            "readOnly": true,
            "description": "Time of the latest source change relevant to directory synchronization, in Unix seconds. Omitted for records without a tracked change."
          }
        },
        "required": [
          "id",
          "workplace_id",
          "person_id",
          "domain_id",
          "address",
          "status",
          "mailbox_verified",
          "generation"
        ]
      },
      "EmailPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailIdentity"
            }
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "CreateEmailIdentity": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "format": "email"
          }
        },
        "required": [
          "address"
        ],
        "additionalProperties": false,
        "example": {
          "address": "alex@example.com"
        },
        "description": "The verified domain is resolved from the email address and must belong to this workplace."
      },
      "UpdateEmailIdentity": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "format": "email"
          }
        },
        "required": [
          "address"
        ],
        "additionalProperties": false
      },
      "Empty": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "OperationAccepted": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          }
        },
        "required": [
          "operation_id"
        ]
      },
      "Operation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "person_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "kind": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "expires_at": {
            "type": "integer",
            "format": "int64"
          },
          "failure": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "person_id",
          "kind",
          "state",
          "expires_at",
          "failure"
        ]
      },
      "DeletePerson": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "minLength": 10,
            "maxLength": 500
          }
        },
        "required": [
          "reason"
        ],
        "additionalProperties": false
      },
      "Deletion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "person_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{32}$"
          },
          "state": {
            "type": "string"
          },
          "requested_at": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "purge_after": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "credentials_retired_at": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "primary_purged_at": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          }
        },
        "required": [
          "id",
          "person_id",
          "state",
          "requested_at",
          "purge_after"
        ]
      },
      "Policy": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "minimum_length": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "require_numbers": {
            "type": "boolean"
          },
          "require_symbols": {
            "type": "boolean"
          },
          "mfa_required": {
            "type": "boolean"
          }
        },
        "required": [
          "key",
          "version",
          "minimum_length",
          "require_numbers",
          "require_symbols",
          "mfa_required"
        ]
      },
      "PolicyPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Policy"
            }
          }
        },
        "required": [
          "items"
        ]
      },
      "CustomAttributes": {
        "type": "object",
        "maxProperties": 32,
        "additionalProperties": {
          "type": "string",
          "maxLength": 2048
        },
        "description": "Plain string-to-string metadata; never permissions or OIDC claims. Keys: 1\u201364 UTF-8 bytes, no surrounding whitespace or control characters. Values: up to 2,048 UTF-8 bytes, no NUL. Total serialized map: at most 16 KiB. Null, nested objects, arrays and non-string values are rejected."
      },
      "ProvisioningConfiguration": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "profile": {
            "type": "string",
            "enum": [
              "generic_scim",
              "apple_business"
            ]
          },
          "endpoint": {
            "type": "string",
            "format": "uri",
            "description": "Immutable public HTTPS SCIM base. Apple uses its fixed profile endpoint."
          },
          "destination_directory_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "environment": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "group_ids": {
            "type": "array",
            "maxItems": 16,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          "domain_ids": {
            "type": "array",
            "maxItems": 16,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          "application_ids": {
            "type": "array",
            "maxItems": 16,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          "activation_policy": {
            "description": "Provision active destination accounts on authorized group assignment, independently of credential activation. This is the only supported policy; omission defaults to provision_on_assignment. Other policy values are rejected.",
            "type": "string",
            "enum": [
              "provision_on_assignment"
            ],
            "default": "provision_on_assignment"
          },
          "export_groups": {
            "type": "boolean"
          },
          "mappings": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Allowlisted destination attributes title, department, organization, division, costCenter and employeeNumber map to individual person custom-attribute keys. Apple does not allow custom mappings."
          },
          "constants": {
            "type": "object",
            "maxProperties": 6,
            "additionalProperties": {
              "type": "string",
              "maxLength": 1024
            },
            "description": "Explicit constant values for the same allowlisted profile targets as mappings. A target may occur in only one of mappings or constants. An empty value explicitly clears its managed field; removing the entry relinquishes ownership. Apple does not permit constants."
          }
        },
        "required": [
          "name",
          "profile",
          "endpoint",
          "destination_directory_id",
          "environment"
        ],
        "example": {
          "name": "Workforce directory",
          "profile": "generic_scim",
          "endpoint": "https://directory.example.com/scim/v2",
          "destination_directory_id": "tenant-123",
          "environment": "production",
          "group_ids": [
            "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
          ],
          "domain_ids": [
            "dddddddddddddddddddddddddddddddd"
          ],
          "application_ids": [],
          "activation_policy": "provision_on_assignment",
          "export_groups": true,
          "mappings": {
            "department": "department"
          }
        }
      },
      "ProvisioningConnection": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "profile": {
            "type": "string",
            "enum": [
              "generic_scim",
              "apple_business"
            ]
          },
          "endpoint": {
            "type": "string",
            "format": "uri",
            "description": "Immutable public HTTPS SCIM base. Apple uses its fixed profile endpoint."
          },
          "destination_directory_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "environment": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "group_ids": {
            "type": "array",
            "maxItems": 16,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          "domain_ids": {
            "type": "array",
            "maxItems": 16,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          "application_ids": {
            "type": "array",
            "maxItems": 16,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          },
          "activation_policy": {
            "description": "Provision active destination accounts on authorized group assignment, independently of credential activation. This is the only supported policy; omission defaults to provision_on_assignment. Other policy values are rejected.",
            "type": "string",
            "enum": [
              "provision_on_assignment"
            ],
            "default": "provision_on_assignment"
          },
          "export_groups": {
            "type": "boolean"
          },
          "mappings": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Allowlisted destination attributes title, department, organization, division, costCenter and employeeNumber map to individual person custom-attribute keys. Apple does not allow custom mappings."
          },
          "id": {
            "type": "string"
          },
          "workplace_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "paused",
              "draining",
              "disconnected"
            ]
          },
          "version": {
            "type": "integer",
            "format": "int64"
          },
          "generation": {
            "type": "integer",
            "format": "int64"
          },
          "credential_version": {
            "type": "integer",
            "format": "int64"
          },
          "credential_configured": {
            "type": "boolean"
          },
          "credential_expires_at": {
            "type": "integer",
            "format": "int64"
          },
          "approved_credential_version": {
            "type": "integer",
            "format": "int64"
          },
          "tested_version": {
            "type": "integer",
            "format": "int64"
          },
          "tested_credential_version": {
            "type": "integer",
            "format": "int64"
          },
          "health": {
            "type": "string"
          },
          "activation_available": {
            "type": "boolean",
            "readOnly": true,
            "description": "Whether this deployment permits activation of this connection. Does not replace authorization, a current preview, or fresh MFA."
          },
          "qualification_expires_at": {
            "type": "integer",
            "format": "int64",
            "readOnly": true,
            "description": "Unix expiry of an operations-managed live-test allowance. Only explicitly allowed identities can be mutated during this window."
          },
          "scope_changed_at": {
            "type": "integer",
            "format": "int64",
            "readOnly": true,
            "description": "Timestamp of the last approved scope or lifecycle configuration change."
          },
          "constants": {
            "type": "object",
            "maxProperties": 6,
            "additionalProperties": {
              "type": "string",
              "maxLength": 1024
            },
            "description": "Explicit constant values for the same allowlisted profile targets as mappings. A target may occur in only one of mappings or constants. An empty value explicitly clears its managed field; removing the entry relinquishes ownership. Apple does not permit constants."
          }
        },
        "required": [
          "id",
          "workplace_id",
          "status",
          "version",
          "credential_configured",
          "health"
        ]
      },
      "ProvisioningAcknowledgment": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "paused",
              "draining",
              "disconnected"
            ]
          },
          "credential_configured": {
            "type": "boolean"
          },
          "health": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "version",
          "status",
          "credential_configured",
          "health"
        ]
      },
      "ProvisioningConnectionPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningConnection"
            }
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "ProvisioningCredential": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "bearer_token": {
            "type": "string",
            "writeOnly": true,
            "minLength": 1,
            "maxLength": 4089
          }
        },
        "required": [
          "bearer_token"
        ]
      },
      "ProvisioningOAuthInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "client_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "client_secret": {
            "type": "string",
            "writeOnly": true,
            "minLength": 1,
            "maxLength": 8192
          }
        },
        "required": [
          "client_id",
          "client_secret"
        ]
      },
      "ProvisioningOAuthAttempt": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "approval_url": {
            "type": "string",
            "format": "uri"
          },
          "expires_at": {
            "type": "integer",
            "format": "int64"
          }
        },
        "required": [
          "id",
          "approval_url",
          "expires_at"
        ]
      },
      "ProvisioningRunInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "identity_ids": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "string",
              "pattern": "^[a-f0-9]{32}$"
            }
          }
        },
        "required": []
      },
      "ProvisioningPreviewInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "configuration": {
            "$ref": "#/components/schemas/ProvisioningConfiguration"
          }
        },
        "required": []
      },
      "ProvisioningRun": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "connection_id": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "preview": {
            "type": "boolean"
          },
          "configuration": {
            "$ref": "#/components/schemas/ProvisioningConfiguration"
          },
          "connection_version": {
            "type": "integer",
            "format": "int64"
          },
          "source_revision": {
            "type": "integer",
            "format": "int64"
          },
          "inspected": {
            "type": "integer",
            "format": "int64"
          },
          "coverage": {
            "type": "string",
            "enum": [
              "connection",
              "visible_items"
            ]
          },
          "reason_code": {
            "type": "string"
          },
          "settled": {
            "type": "integer",
            "minimum": 0,
            "description": "Count from settled pages; absent before progress or for callers without full source visibility."
          },
          "needs_attention": {
            "type": "integer",
            "minimum": 0,
            "description": "Count from settled pages; absent before progress or for callers without full source visibility."
          },
          "create_before_activation": {
            "type": "integer",
            "minimum": 0,
            "description": "Preview count of new active accounts for people awaiting credential activation. Existing-account adoption is excluded. Omitted for scoped readers."
          }
        },
        "required": [
          "id",
          "connection_id",
          "state",
          "preview",
          "coverage"
        ]
      },
      "ProvisioningPlanItem": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "address": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "identity_id": {
            "type": "string"
          },
          "person_id": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "source_revision": {
            "type": "string"
          },
          "reason_code": {
            "type": "string"
          },
          "match_id": {
            "type": "string"
          },
          "destination_account_id": {
            "type": "string"
          },
          "account_setup": {
            "type": "string",
            "enum": [
              "awaiting_activation",
              "complete",
              "unavailable"
            ],
            "description": "Source account setup, independent of destination synchronization. Complete does not itself grant application access."
          }
        },
        "required": [
          "identity_id",
          "person_id",
          "action",
          "source_revision"
        ]
      },
      "ProvisioningPlanPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningPlanItem"
            }
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "ProvisioningIdentity": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "address": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "match_id": {
            "type": "string"
          },
          "identity_id": {
            "type": "string"
          },
          "person_id": {
            "type": "string"
          },
          "connection_id": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "desired_state": {
            "type": "string"
          },
          "destination_account_id": {
            "type": "string",
            "nullable": true
          },
          "desired_revision": {
            "type": "string"
          },
          "applied_revision": {
            "type": "string",
            "nullable": true
          },
          "reason_code": {
            "type": "string"
          },
          "connection_health": {
            "type": "string"
          },
          "observed_at": {
            "type": "integer",
            "format": "int64"
          },
          "last_success_at": {
            "type": "integer",
            "format": "int64"
          },
          "poll_after_seconds": {
            "type": "integer",
            "format": "int64"
          },
          "error": {
            "$ref": "#/components/schemas/ProvisioningProblem"
          },
          "account_setup": {
            "type": "string",
            "enum": [
              "awaiting_activation",
              "complete",
              "unavailable"
            ],
            "description": "Source account setup, independent of destination synchronization. Complete does not itself grant application access."
          }
        },
        "required": [
          "identity_id",
          "connection_id",
          "state",
          "poll_after_seconds"
        ]
      },
      "ProvisioningIdentityPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningIdentity"
            }
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "ProvisioningGroup": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "group_id": {
            "type": "string"
          },
          "destination_group_id": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "reason_code": {
            "type": "string"
          },
          "error": {
            "$ref": "#/components/schemas/ProvisioningProblem"
          }
        },
        "required": [
          "group_id",
          "state"
        ]
      },
      "ProvisioningGroupPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProvisioningGroup"
            }
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "ProvisioningTransition": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "enable",
              "resume",
              "apply",
              "pause",
              "deactivate_and_disconnect",
              "disconnect"
            ]
          },
          "preview_id": {
            "type": "string"
          },
          "acknowledge_unresolved_access": {
            "type": "boolean"
          }
        },
        "required": [
          "action"
        ]
      },
      "ProvisioningProblem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code",
          "message",
          "retryable",
          "next_action"
        ],
        "description": "Bounded actionable guidance; never includes provider response text or credentials. Retryable means reconciliation can be retried safely; it does not permit repeating an uncertain account creation.",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "retryable": {
            "type": "boolean"
          },
          "next_action": {
            "type": "string"
          }
        }
      },
      "ProvisioningRunAcknowledgment": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "connection_id",
          "preview"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "connection_id": {
            "type": "string"
          },
          "preview": {
            "type": "boolean"
          }
        }
      }
    },
    "parameters": {
      "Workplace": {
        "name": "workplace",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[a-f0-9]{32}$"
        },
        "description": "Workplace ID copied from the console."
      },
      "Cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Opaque next_cursor from the prior page. Keep the same query. Continue until absent or empty, even after an empty page."
      },
      "Query": {
        "name": "q",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "maxLength": 200
        },
        "description": "Case-insensitive display-name substring search; results are summaries, not full records."
      },
      "IdempotencyRequired": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string",
          "minLength": 8,
          "maxLength": 200
        },
        "description": "Unique logical operation key. Reuse the same credential, body and headers after a timeout. Receipts retained at least seven days. Reusing a key with different input returns 400."
      },
      "IdempotencyOptional": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string",
          "minLength": 8,
          "maxLength": 200
        },
        "description": "Recommended for retryable mutations. Reuse the exact original request. A replay acknowledges the prior mutation without applying it again. GET the resource for current state."
      },
      "PersonVersion": {
        "name": "If-Match",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Quoted person.version from GET person (or member.version from the membership list). Example: \"3\". Weak ETags are rejected."
      },
      "ProfileVersion": {
        "name": "If-Match",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Quoted profile.version from GET person; this is distinct from person.version."
      },
      "GroupVersion": {
        "name": "If-Match",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Quoted group.version from GET group."
      },
      "EmailGeneration": {
        "name": "If-Match",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Quoted email identity generation from the email-identity list."
      },
      "Source": {
        "name": "source",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
        },
        "description": "Exact integration namespace."
      },
      "ExternalID": {
        "name": "external_id",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "description": "Exact opaque external ID; URL-encode it."
      },
      "ConnectionVersion": {
        "name": "If-Match",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Quoted connection.version. A stale version or preview returns 412."
      }
    },
    "responses": {
      "Error400": {
        "description": "Invalid JSON, fields, identifier, key reuse or policy. error includes invalid_request and verified_domain_required.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error401": {
        "description": "Authentication failed.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error403": {
        "description": "Invalid/expired/revoked credential, insufficient capability, resource restriction, inactive workplace or disallowed lifecycle.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error404": {
        "description": "Resource or external reference not found.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error409": {
        "description": "Conflict: duplicate external reference/address, concurrent write or pending credential operation.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error412": {
        "description": "version_mismatch. Re-read resource and reconcile; use a new logical operation/key for a revised request.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error429": {
        "description": "Rate limit. Wait at least Retry-After seconds.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          },
          "Retry-After": {
            "schema": {
              "type": "integer"
            },
            "description": "Seconds before retry, currently 60."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error500": {
        "description": "Unexpected failure; retry unchanged idempotent requests with bounded backoff.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error503": {
        "description": "Credential provider unavailable; retry with bounded backoff.",
        "headers": {
          "X-Request-ID": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "serviceCredential": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Opaque service credential",
        "description": "Workplace-scoped backend credential, not a person/OIDC access token. Store in a server secret manager."
      }
    }
  }
}
