{
  "openapi": "3.1.0",
  "info": {
    "title": "REST API",
    "version": "generated",
    "description": "Generated from the route table. Every route lists the API-key scope it needs (x-api-key-access): a scope, \"session\" (signed-in browser only) or \"public\" (the route checks its own credential, such as a signed link or webhook signature). Request and response bodies are described in the docs pages."
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key: Authorization: Bearer <key>."
      },
      "session": {
        "type": "apiKey",
        "in": "cookie",
        "name": "session",
        "description": "A signed-in browser session."
      }
    }
  },
  "paths": {
    "/api/access/assignments": {
      "get": {
        "operationId": "get_access_assignments",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_assignments",
        "tags": [
          "access"
        ],
        "summary": "Assign a role (owners/admins, or an app admin for a role built only from their app's sets; audited).",
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/assignments/{id}": {
      "delete": {
        "operationId": "delete_access_assignments_id",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/audit": {
      "get": {
        "operationId": "get_access_audit",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/break-glass": {
      "post": {
        "operationId": "post_access_break_glass",
        "tags": [
          "access"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/classification": {
      "put": {
        "operationId": "put_access_classification",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/delegations": {
      "get": {
        "operationId": "get_access_delegations",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_delegations",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/delegations/{id}/revoke": {
      "post": {
        "operationId": "post_access_delegations_id_revoke",
        "tags": [
          "access"
        ],
        "summary": "End a delegation early: the delegator, the delegate or an owner/admin.",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/effective": {
      "get": {
        "operationId": "get_access_effective",
        "tags": [
          "access"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/elevations": {
      "get": {
        "operationId": "get_access_elevations",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_elevations",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/elevations/{id}/decide": {
      "post": {
        "operationId": "post_access_elevations_id_decide",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/elevations/{id}/revoke": {
      "post": {
        "operationId": "post_access_elevations_id_revoke",
        "tags": [
          "access"
        ],
        "summary": "End an elevation early (an admin, or the holder); a pending request is cancelled.",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/enforce/readiness": {
      "get": {
        "operationId": "get_access_enforce_readiness",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/evaluator": {
      "get": {
        "operationId": "get_access_evaluator",
        "tags": [
          "access"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_access_evaluator",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/explain": {
      "get": {
        "operationId": "get_access_explain",
        "tags": [
          "access"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_explain",
        "tags": [
          "access"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/freeze": {
      "get": {
        "operationId": "get_access_freeze",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_freeze",
        "tags": [
          "access"
        ],
        "summary": "Apply the freeze (owners only).",
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/freeze/open": {
      "post": {
        "operationId": "post_access_freeze_open",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/group-mappings": {
      "get": {
        "operationId": "get_access_group_mappings",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_group_mappings",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/group-mappings/{id}": {
      "delete": {
        "operationId": "delete_access_group_mappings_id",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/groups": {
      "get": {
        "operationId": "get_access_groups",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_groups",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/groups/{id}": {
      "get": {
        "operationId": "get_access_groups_id",
        "tags": [
          "access"
        ],
        "summary": "One group with its members and mappings (owners/admins).",
        "x-api-key-access": "settings:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_access_groups_id",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_access_groups_id",
        "tags": [
          "access"
        ],
        "summary": "Delete a manual group (SCIM groups are deleted by the IdP).",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/groups/{id}/members": {
      "post": {
        "operationId": "post_access_groups_id_members",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_access_groups_id_members",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/hierarchies": {
      "get": {
        "operationId": "get_access_hierarchies",
        "tags": [
          "access"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/hierarchies/{key}": {
      "get": {
        "operationId": "get_access_hierarchies_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_hierarchies_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/hierarchies/{key}/reparent": {
      "post": {
        "operationId": "post_access_hierarchies_key_reparent",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/permission-sets": {
      "get": {
        "operationId": "get_access_permission_sets",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_permission_sets",
        "tags": [
          "access"
        ],
        "summary": "Create or replace a workspace permission set (owners/admins, or an app admin for their app's sets; audited).",
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/permission-sets/{key}": {
      "get": {
        "operationId": "get_access_permission_sets_key",
        "tags": [
          "access"
        ],
        "summary": "One set (owners/admins; an app admin: their app's sets only, others answer 404 like a missing one).",
        "x-api-key-access": "settings:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_access_permission_sets_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_access_permission_sets_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_access_permission_sets_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/restrictions": {
      "get": {
        "operationId": "get_access_restrictions",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_restrictions",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/restrictions/{key}": {
      "put": {
        "operationId": "put_access_restrictions_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_access_restrictions_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/roles/{key}": {
      "get": {
        "operationId": "get_access_roles_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_access_roles_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_access_roles_key",
        "tags": [
          "access"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_access_roles_key",
        "tags": [
          "access"
        ],
        "summary": "Delete a custom role nobody holds as their seat (owners/admins; app admins: their app's roles).",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/shadow": {
      "get": {
        "operationId": "get_access_shadow",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/view-as": {
      "get": {
        "operationId": "get_access_view_as",
        "tags": [
          "access"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_access_view_as",
        "tags": [
          "access"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_access_view_as",
        "tags": [
          "access"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/who": {
      "get": {
        "operationId": "get_access_who",
        "tags": [
          "access"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/access/whoami": {
      "get": {
        "operationId": "get_access_whoami",
        "tags": [
          "access"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/acls": {
      "get": {
        "operationId": "get_acls",
        "tags": [
          "acls"
        ],
        "summary": "List ACL rules for the workspace (admin only).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_acls",
        "tags": [
          "acls"
        ],
        "summary": "Upsert a rule (admin only).",
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/acls/{id}": {
      "delete": {
        "operationId": "delete_acls_id",
        "tags": [
          "acls"
        ],
        "summary": "Remove an ACL rule (admin only, workspace-scoped).",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/agent-host/claim": {
      "post": {
        "operationId": "post_agent_host_claim",
        "tags": [
          "agent-host"
        ],
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/agent-host/complete": {
      "post": {
        "operationId": "post_agent_host_complete",
        "tags": [
          "agent-host"
        ],
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/agent-host/heartbeat": {
      "post": {
        "operationId": "post_agent_host_heartbeat",
        "tags": [
          "agent-host"
        ],
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/agent-host/task": {
      "get": {
        "operationId": "get_agent_host_task",
        "tags": [
          "agent-host"
        ],
        "summary": "Status + answer for the runner's cancel checks and ask_owner answer-polling.",
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/agent-host/waiting": {
      "post": {
        "operationId": "post_agent_host_waiting",
        "tags": [
          "agent-host"
        ],
        "summary": "Local ask_owner: flip the task to waiting with the question (runner then polls /task).",
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/{id}": {
      "get": {
        "operationId": "get_ai_id",
        "tags": [
          "ai"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/{id}/review": {
      "post": {
        "operationId": "post_ai_id_review",
        "tags": [
          "ai"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/adapters": {
      "get": {
        "operationId": "get_ai_adapters",
        "tags": [
          "ai"
        ],
        "summary": "Research source adapters + availability (for the research.enrich picker).",
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/agents": {
      "get": {
        "operationId": "get_ai_agents",
        "tags": [
          "ai"
        ],
        "summary": "The workspace's named AI agents.",
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_ai_agents",
        "tags": [
          "ai"
        ],
        "summary": "Create/update a named agent (admin).",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/agents/{key}": {
      "get": {
        "operationId": "get_ai_agents_key",
        "tags": [
          "ai"
        ],
        "summary": "One agent.",
        "x-api-key-access": "ai:use",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_ai_agents_key",
        "tags": [
          "ai"
        ],
        "summary": "Remove an agent (admin).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/assist/draft": {
      "post": {
        "operationId": "post_ai_assist_draft",
        "tags": [
          "ai"
        ],
        "summary": "Drafts a customer-facing reply grounded in the ticket + top KB articles.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/assist/suggest": {
      "post": {
        "operationId": "post_ai_assist_suggest",
        "tags": [
          "ai"
        ],
        "summary": "Semantic KB article suggestions for the agent working a ticket (searches the 'kb' RAG index, keyword fallback).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/assist/summarize": {
      "post": {
        "operationId": "post_ai_assist_summarize",
        "tags": [
          "ai"
        ],
        "summary": "A concise TL;DR of the ticket + its thread, for reassignment / shift handoff / major-incident bridges.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/config": {
      "get": {
        "operationId": "get_ai_config",
        "tags": [
          "ai"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_ai_config",
        "tags": [
          "ai"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/knowledge/settings": {
      "get": {
        "operationId": "get_ai_knowledge_settings",
        "tags": [
          "ai"
        ],
        "summary": "KB index status + auto-sync toggle (any member).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_ai_knowledge_settings",
        "tags": [
          "ai"
        ],
        "summary": "Toggle scheduled auto-sync (admin).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/knowledge/sync": {
      "post": {
        "operationId": "post_ai_knowledge_sync",
        "tags": [
          "ai"
        ],
        "summary": "Rebuild the agent knowledge index from published KB articles (admin).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/models": {
      "get": {
        "operationId": "get_ai_models",
        "tags": [
          "ai"
        ],
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/tasks": {
      "get": {
        "operationId": "get_ai_tasks",
        "tags": [
          "ai"
        ],
        "summary": "The CURRENT USER's agent task queue (queues are per user, never shared).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_ai_tasks",
        "tags": [
          "ai"
        ],
        "summary": "Queue a task in the current user's queue.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/tasks/{id}": {
      "patch": {
        "operationId": "patch_ai_tasks_id",
        "tags": [
          "ai"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/ai/tasks/{id}/transcript": {
      "get": {
        "operationId": "get_ai_tasks_id_transcript",
        "tags": [
          "ai"
        ],
        "summary": "The owner's view of what the agent actually did: the task's session transcript.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/approvals": {
      "get": {
        "operationId": "get_approvals",
        "tags": [
          "approvals"
        ],
        "summary": "Approvals in the workspace, for the CLI and automation.",
        "x-api-key-access": "approvals:decide",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "approvals:decide"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/approvals/{id}": {
      "get": {
        "operationId": "get_approvals_id",
        "tags": [
          "approvals"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/approvals/{id}/decide": {
      "post": {
        "operationId": "post_approvals_id_decide",
        "tags": [
          "approvals"
        ],
        "x-api-key-access": "approvals:decide",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "approvals:decide"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps": {
      "get": {
        "operationId": "get_apps",
        "tags": [
          "apps"
        ],
        "summary": "List the API key's workspace's published apps + their versions.",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/delete": {
      "post": {
        "operationId": "post_apps_delete",
        "tags": [
          "apps"
        ],
        "summary": "Remove a custom app (session, admin).",
        "x-api-key-access": "apps:install",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/dependencies": {
      "get": {
        "operationId": "get_apps_dependencies",
        "tags": [
          "apps"
        ],
        "summary": "What a delete would touch / block (session, admin).",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/install": {
      "post": {
        "operationId": "post_apps_install",
        "tags": [
          "apps"
        ],
        "x-api-key-access": "apps:install",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/install-runs": {
      "get": {
        "operationId": "get_apps_install_runs",
        "tags": [
          "apps"
        ],
        "summary": "Recent install runs in this workspace (newest first).",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_apps_install_runs",
        "tags": [
          "apps"
        ],
        "x-api-key-access": "apps:install",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/install-runs/{id}": {
      "get": {
        "operationId": "get_apps_install_runs_id",
        "tags": [
          "apps"
        ],
        "summary": "One install run of this workspace (another workspace's id answers 404).",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/install-runs/{id}/resume": {
      "post": {
        "operationId": "post_apps_install_runs_id_resume",
        "tags": [
          "apps"
        ],
        "summary": "Retry a failed install run from the step that failed (what is installed stays; nothing is redone).",
        "x-api-key-access": "apps:install",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/install-runs/{id}/step": {
      "post": {
        "operationId": "post_apps_install_runs_id_step",
        "tags": [
          "apps"
        ],
        "summary": "Install the next app of the run (one per call) and return the run.",
        "x-api-key-access": "apps:install",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/install/plan": {
      "get": {
        "operationId": "get_apps_install_plan",
        "tags": [
          "apps"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/publish": {
      "post": {
        "operationId": "post_apps_publish",
        "tags": [
          "apps"
        ],
        "summary": "Publish an immutable AppVersion (the data manifest, with any DSL workflows) owned by the API key's workspace.",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/uninstall": {
      "post": {
        "operationId": "post_apps_uninstall",
        "tags": [
          "apps"
        ],
        "summary": "Disable an installed app in the API key's workspace.",
        "x-api-key-access": "apps:install",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/updates": {
      "get": {
        "operationId": "get_apps_updates",
        "tags": [
          "apps"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/upgrade": {
      "post": {
        "operationId": "post_apps_upgrade",
        "tags": [
          "apps"
        ],
        "summary": "Assess (and optionally apply) an app version upgrade with a data-loss guard.",
        "x-api-key-access": "apps:install",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/apps/upgrade/bulk": {
      "post": {
        "operationId": "post_apps_upgrade_bulk",
        "tags": [
          "apps"
        ],
        "summary": "Upgrade several installed apps, dependencies first.",
        "x-api-key-access": "apps:install",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/assets/checkouts/{id}/ack-link": {
      "post": {
        "operationId": "post_assets_checkouts_id_ack_link",
        "tags": [
          "assets"
        ],
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/assets/checkouts/{id}/acknowledge": {
      "post": {
        "operationId": "post_assets_checkouts_id_acknowledge",
        "tags": [
          "assets"
        ],
        "summary": "The signed-in recipient confirms they received the kit.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/assistant": {
      "post": {
        "operationId": "post_assistant",
        "tags": [
          "assistant"
        ],
        "summary": "Stream the assistant's agentic run as SSE; persists the turn + logs usage at the end.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/assistant/sessions": {
      "get": {
        "operationId": "get_assistant_sessions",
        "tags": [
          "assistant"
        ],
        "summary": "The caller's recent assistant conversations.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/assistant/sessions/{id}": {
      "get": {
        "operationId": "get_assistant_sessions_id",
        "tags": [
          "assistant"
        ],
        "summary": "One conversation's messages (only if it belongs to the caller).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_assistant_sessions_id",
        "tags": [
          "assistant"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/attachments/blob/{key}": {
      "get": {
        "operationId": "get_attachments_blob_key",
        "tags": [
          "attachments"
        ],
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_attachments_blob_key",
        "tags": [
          "attachments"
        ],
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/audit": {
      "get": {
        "operationId": "get_audit",
        "tags": [
          "audit"
        ],
        "summary": "Admin-only audit list.",
        "x-api-key-access": "audit:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "audit:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/audit/export": {
      "get": {
        "operationId": "get_audit_export",
        "tags": [
          "audit"
        ],
        "summary": "Admin-only download of the audit log.",
        "x-api-key-access": "audit:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "audit:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/audit/security": {
      "get": {
        "operationId": "get_audit_security",
        "tags": [
          "audit"
        ],
        "summary": "Admin-only auth-event list.",
        "x-api-key-access": "audit:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "audit:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/audit/security/export": {
      "get": {
        "operationId": "get_audit_security_export",
        "tags": [
          "audit"
        ],
        "summary": "Admin-only auth-event download.",
        "x-api-key-access": "audit:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "audit:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/auth/{all}": {
      "get": {
        "operationId": "get_auth_all",
        "tags": [
          "auth"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "all",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_auth_all",
        "tags": [
          "auth"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "all",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/automations": {
      "get": {
        "operationId": "get_automations",
        "tags": [
          "automations"
        ],
        "summary": "The tenant's automations.",
        "x-api-key-access": "workflows:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_automations",
        "tags": [
          "automations"
        ],
        "x-api-key-access": "workflows:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/automations/{key}": {
      "get": {
        "operationId": "get_automations_key",
        "tags": [
          "automations"
        ],
        "x-api-key-access": "workflows:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_automations_key",
        "tags": [
          "automations"
        ],
        "x-api-key-access": "workflows:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_automations_key",
        "tags": [
          "automations"
        ],
        "x-api-key-access": "workflows:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_automations_key",
        "tags": [
          "automations"
        ],
        "x-api-key-access": "workflows:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/automations/{key}/run": {
      "post": {
        "operationId": "post_automations_key_run",
        "tags": [
          "automations"
        ],
        "summary": "Manually run this automation now; returns the run id.",
        "x-api-key-access": "workflows:run",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:run"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/automations/metadata": {
      "get": {
        "operationId": "get_automations_metadata",
        "tags": [
          "automations"
        ],
        "summary": "Every workspace entity (+ members/roles) for the automation builder's pickers.",
        "x-api-key-access": "workflows:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/automations/on-failure": {
      "post": {
        "operationId": "post_automations_on_failure",
        "tags": [
          "automations"
        ],
        "summary": "Set (or clear) the workspace-wide on-failure automation.",
        "x-api-key-access": "workflows:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/automations/overrides": {
      "get": {
        "operationId": "get_automations_overrides",
        "tags": [
          "automations"
        ],
        "summary": "Installed apps' shipped workflows, annotated with override state.",
        "x-api-key-access": "workflows:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_automations_overrides",
        "tags": [
          "automations"
        ],
        "summary": "Fork a shipped workflow into an editable tenant override.",
        "x-api-key-access": "workflows:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/automations/overrides/{appKey}/{key}": {
      "get": {
        "operationId": "get_automations_overrides_appKey_key",
        "tags": [
          "automations"
        ],
        "x-api-key-access": "workflows:read",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_automations_overrides_appKey_key",
        "tags": [
          "automations"
        ],
        "summary": "Save the override body.",
        "x-api-key-access": "workflows:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_automations_overrides_appKey_key",
        "tags": [
          "automations"
        ],
        "summary": "Disable an app's workflow for this tenant (or re-enable the override).",
        "x-api-key-access": "workflows:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_automations_overrides_appKey_key",
        "tags": [
          "automations"
        ],
        "summary": "Drop the override; the app's shipped workflow takes effect again.",
        "x-api-key-access": "workflows:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/blocks/composites/{key}": {
      "post": {
        "operationId": "post_blocks_composites_key",
        "tags": [
          "blocks"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/blocks/custom/{name}": {
      "post": {
        "operationId": "post_blocks_custom_name",
        "tags": [
          "blocks"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps": {
      "get": {
        "operationId": "get_build_apps",
        "tags": [
          "build"
        ],
        "summary": "The workspace's custom apps.",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_build_apps",
        "tags": [
          "build"
        ],
        "summary": "Create a new custom app.",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/entities": {
      "post": {
        "operationId": "post_build_apps_appKey_entities",
        "tags": [
          "build"
        ],
        "summary": "Create an app-scoped entity.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/extend": {
      "get": {
        "operationId": "get_build_apps_appKey_extend",
        "tags": [
          "build"
        ],
        "summary": "This app's extension fields, grouped by target entity.",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_build_apps_appKey_extend",
        "tags": [
          "build"
        ],
        "summary": "Add an app-owned field.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_build_apps_appKey_extend",
        "tags": [
          "build"
        ],
        "summary": "Remove one of this app's extension fields.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/metadata": {
      "get": {
        "operationId": "get_build_apps_appKey_metadata",
        "tags": [
          "build"
        ],
        "summary": "Entities/fields/states + members + roles for the flow-builder's pickers.",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/publish": {
      "post": {
        "operationId": "post_build_apps_appKey_publish",
        "tags": [
          "build"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/sites": {
      "get": {
        "operationId": "get_build_apps_appKey_sites",
        "tags": [
          "build"
        ],
        "summary": "The app's site settings, its routes, and the entities (with fields) available to bind.",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_build_apps_appKey_sites",
        "tags": [
          "build"
        ],
        "summary": "Upsert the site settings (mount / visibility / slug / nav / accent).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/sites/routes": {
      "post": {
        "operationId": "post_build_apps_appKey_sites_routes",
        "tags": [
          "build"
        ],
        "summary": "Upsert a route.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_build_apps_appKey_sites_routes",
        "tags": [
          "build"
        ],
        "summary": "Remove a route.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/store": {
      "post": {
        "operationId": "post_build_apps_appKey_store",
        "tags": [
          "build"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_build_apps_appKey_store",
        "tags": [
          "build"
        ],
        "summary": "Upsert the store listing + plans (monetize).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/workflows": {
      "get": {
        "operationId": "get_build_apps_appKey_workflows",
        "tags": [
          "build"
        ],
        "summary": "The app's workflow drafts.",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_build_apps_appKey_workflows",
        "tags": [
          "build"
        ],
        "summary": "Create a new workflow (manual trigger, empty body) to edit on the canvas.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/build/apps/{appKey}/workflows/{key}": {
      "get": {
        "operationId": "get_build_apps_appKey_workflows_key",
        "tags": [
          "build"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_build_apps_appKey_workflows_key",
        "tags": [
          "build"
        ],
        "summary": "Save the workflow (validated).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_build_apps_appKey_workflows_key",
        "tags": [
          "build"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/business-hours": {
      "get": {
        "operationId": "get_business_hours",
        "tags": [
          "business-hours"
        ],
        "summary": "The workspace's working-hours schedule (or defaults).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_business_hours",
        "tags": [
          "business-hours"
        ],
        "summary": "Save the schedule (admins only).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/changesets": {
      "get": {
        "operationId": "get_changesets",
        "tags": [
          "changesets"
        ],
        "summary": "Changesets, newest first.",
        "x-api-key-access": "spec:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_changesets",
        "tags": [
          "changesets"
        ],
        "x-api-key-access": "spec:propose",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:propose"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/changesets/{id}": {
      "get": {
        "operationId": "get_changesets_id",
        "tags": [
          "changesets"
        ],
        "summary": "The changeset with its items (docs + base hashes) and activity.",
        "x-api-key-access": "spec:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_changesets_id",
        "tags": [
          "changesets"
        ],
        "summary": "Rename, or mark ready for review / reopen.",
        "x-api-key-access": "spec:propose",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:propose"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/changesets/{id}/apply": {
      "post": {
        "operationId": "post_changesets_id_apply",
        "tags": [
          "changesets"
        ],
        "x-api-key-access": "spec:apply",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:apply"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/changesets/{id}/discard": {
      "post": {
        "operationId": "post_changesets_id_discard",
        "tags": [
          "changesets"
        ],
        "summary": "Drop the changeset (kept, with its activity, as discarded).",
        "x-api-key-access": "spec:propose",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:propose"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/changesets/{id}/items": {
      "put": {
        "operationId": "put_changesets_id_items",
        "tags": [
          "changesets"
        ],
        "x-api-key-access": "spec:propose",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:propose"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_changesets_id_items",
        "tags": [
          "changesets"
        ],
        "summary": "Drop one item.",
        "x-api-key-access": "spec:propose",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:propose"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/changesets/{id}/plan": {
      "post": {
        "operationId": "post_changesets_id_plan",
        "tags": [
          "changesets"
        ],
        "summary": "The plan of every item against current (merges, conflicts, permissions).",
        "x-api-key-access": "spec:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/inbox": {
      "get": {
        "operationId": "get_chat_inbox",
        "tags": [
          "chat"
        ],
        "summary": "Open chats (needing an answer first) + the last day's closed ones.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/inbox/{id}": {
      "get": {
        "operationId": "get_chat_inbox_id",
        "tags": [
          "chat"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/inbox/{id}/close": {
      "post": {
        "operationId": "post_chat_inbox_id_close",
        "tags": [
          "chat"
        ],
        "summary": "End the chat from Ligament.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/inbox/{id}/reply": {
      "post": {
        "operationId": "post_chat_inbox_id_reply",
        "tags": [
          "chat"
        ],
        "summary": "Answer from Ligament (claims the chat if unanswered).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/inbox/stream": {
      "get": {
        "operationId": "get_chat_inbox_stream",
        "tags": [
          "chat"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/settings": {
      "get": {
        "operationId": "get_chat_settings",
        "tags": [
          "chat"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_chat_settings",
        "tags": [
          "chat"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/settings/connect": {
      "post": {
        "operationId": "post_chat_settings_connect",
        "tags": [
          "chat"
        ],
        "summary": "Check the channel and register its inbound webhook (admin only).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/settings/staff": {
      "get": {
        "operationId": "get_chat_settings_staff",
        "tags": [
          "chat"
        ],
        "summary": "The staff-name directory (admin only).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_chat_settings_staff",
        "tags": [
          "chat"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/chat/settings/test": {
      "post": {
        "operationId": "post_chat_settings_test",
        "tags": [
          "chat"
        ],
        "summary": "Post a test message to the staff channel (admin only).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/cli/generate": {
      "post": {
        "operationId": "post_cli_generate",
        "tags": [
          "cli"
        ],
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/assignments/{id}/complete": {
      "post": {
        "operationId": "post_compliance_assignments_id_complete",
        "tags": [
          "compliance"
        ],
        "summary": "The signed-in assignee completes their OWN assignment.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/assignments/{id}/document": {
      "get": {
        "operationId": "get_compliance_assignments_id_document",
        "tags": [
          "compliance"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/assignments/{id}/external-link": {
      "post": {
        "operationId": "post_compliance_assignments_id_external_link",
        "tags": [
          "compliance"
        ],
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/assignments/{id}/progress": {
      "post": {
        "operationId": "post_compliance_assignments_id_progress",
        "tags": [
          "compliance"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/assignments/{id}/quiz": {
      "post": {
        "operationId": "post_compliance_assignments_id_quiz",
        "tags": [
          "compliance"
        ],
        "summary": "The signed-in assignee's quiz.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/campaigns/{id}/launch": {
      "post": {
        "operationId": "post_compliance_campaigns_id_launch",
        "tags": [
          "compliance"
        ],
        "summary": "Assign the campaign's obligation to its audience with its due date.",
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/channel": {
      "post": {
        "operationId": "post_compliance_channel",
        "tags": [
          "compliance"
        ],
        "summary": "Publish the public speak-up form (an App Site with the anonymous intake blocks) or take it down.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/completions/{id}/correct": {
      "post": {
        "operationId": "post_compliance_completions_id_correct",
        "tags": [
          "compliance"
        ],
        "summary": "A correction: a new record pointing at the original (which never changes).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/completions/{id}/review": {
      "post": {
        "operationId": "post_compliance_completions_id_review",
        "tags": [
          "compliance"
        ],
        "summary": "A compliance admin verifies or rejects submitted evidence (an uploaded signed copy, a certificate) or countersigns it.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/exemptions/{id}/request": {
      "post": {
        "operationId": "post_compliance_exemptions_id_request",
        "tags": [
          "compliance"
        ],
        "summary": "Send a draft exemption for approval (Compliance admins).",
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/governance/{id}/evidence": {
      "post": {
        "operationId": "post_compliance_governance_id_evidence",
        "tags": [
          "compliance"
        ],
        "summary": "Use an attached file as the task's evidence (owner or admin).",
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/me": {
      "get": {
        "operationId": "get_compliance_me",
        "tags": [
          "compliance"
        ],
        "summary": "The caller's own assignments (session or an API key acting as its owner, scope records:read:cmp_assignment).",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/obligations/{id}/preview": {
      "get": {
        "operationId": "get_compliance_obligations_id_preview",
        "tags": [
          "compliance"
        ],
        "summary": "Who this obligation assigns to today, why, and the next due dates.",
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/pack": {
      "get": {
        "operationId": "get_compliance_pack",
        "tags": [
          "compliance"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/sync": {
      "post": {
        "operationId": "post_compliance_sync",
        "tags": [
          "compliance"
        ],
        "x-api-key-access": "records:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/templates": {
      "get": {
        "operationId": "get_compliance_templates",
        "tags": [
          "compliance"
        ],
        "summary": "The catalog and what's installed.",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_compliance_templates",
        "tags": [
          "compliance"
        ],
        "x-api-key-access": "records:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/versions/{id}/publish": {
      "post": {
        "operationId": "post_compliance_versions_id_publish",
        "tags": [
          "compliance"
        ],
        "summary": "Publish an approved document version (the document's owner or a Compliance admin).",
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/compliance/versions/{id}/submit": {
      "post": {
        "operationId": "post_compliance_versions_id_submit",
        "tags": [
          "compliance"
        ],
        "summary": "Submit a draft document version for approval (the document's owner or a Compliance admin).",
        "x-api-key-access": "records:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/components": {
      "get": {
        "operationId": "get_components",
        "tags": [
          "components"
        ],
        "summary": "Every custom component version (status, requested vs approved scopes, hash).",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_components",
        "tags": [
          "components"
        ],
        "summary": "Upload a version (admins; it is code that will run in viewers' browsers, sandboxed).",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/components/{name}/{version}/approve": {
      "post": {
        "operationId": "post_components_name_version_approve",
        "tags": [
          "components"
        ],
        "summary": "Approve a version and grant a subset of the scopes it requested (default: all requested).",
        "x-api-key-access": "components:approve",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "components:approve"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/components/{name}/{version}/revoke": {
      "post": {
        "operationId": "post_components_name_version_revoke",
        "tags": [
          "components"
        ],
        "summary": "Withdraw a version's approval.",
        "x-api-key-access": "components:approve",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "components:approve"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/components/data": {
      "post": {
        "operationId": "post_components_data",
        "tags": [
          "components"
        ],
        "summary": "The ONLY data channel of a custom component.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/connector-hook/{token}": {
      "get": {
        "operationId": "get_connector_hook_token",
        "tags": [
          "connector-hook"
        ],
        "x-api-key-access": "endpoints:invoke",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_connector_hook_token",
        "tags": [
          "connector-hook"
        ],
        "x-api-key-access": "endpoints:invoke",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/connectors": {
      "get": {
        "operationId": "get_connectors",
        "tags": [
          "connectors"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_connectors",
        "tags": [
          "connectors"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/connectors/{key}": {
      "get": {
        "operationId": "get_connectors_key",
        "tags": [
          "connectors"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_connectors_key",
        "tags": [
          "connectors"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_connectors_key",
        "tags": [
          "connectors"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/connectors/{key}/test": {
      "post": {
        "operationId": "post_connectors_key_test",
        "tags": [
          "connectors"
        ],
        "summary": "Try a connector operation with sample args — powers the editor's Run button.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/dashboards": {
      "get": {
        "operationId": "get_dashboards",
        "tags": [
          "dashboards"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_dashboards",
        "tags": [
          "dashboards"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_dashboards",
        "tags": [
          "dashboards"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/dashboards/{id}/favorite": {
      "post": {
        "operationId": "post_dashboards_id_favorite",
        "tags": [
          "dashboards"
        ],
        "summary": "Toggle this dashboard as a favorite for the current user (pins it to the sidebar).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/demo": {
      "get": {
        "operationId": "get_demo",
        "tags": [
          "demo"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/demo/load": {
      "post": {
        "operationId": "post_demo_load",
        "tags": [
          "demo"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/demo/remove": {
      "post": {
        "operationId": "post_demo_remove",
        "tags": [
          "demo"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/domains": {
      "get": {
        "operationId": "get_domains",
        "tags": [
          "domains"
        ],
        "summary": "Claimed email domains for the workspace (+ the TXT record that verifies a pending one; admin keys and sessions only).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_domains",
        "tags": [
          "domains"
        ],
        "summary": "Claim a domain (admins).",
        "x-api-key-access": "sso:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "sso:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_domains",
        "tags": [
          "domains"
        ],
        "summary": "Unclaim a domain (admins).",
        "x-api-key-access": "sso:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "sso:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/domains/verify": {
      "post": {
        "operationId": "post_domains_verify",
        "tags": [
          "domains"
        ],
        "x-api-key-access": "sso:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "sso:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed-tokens": {
      "post": {
        "operationId": "post_embed_tokens",
        "tags": [
          "embed-tokens"
        ],
        "summary": "Mint an embed token (admin only).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed-tokens/{id}": {
      "patch": {
        "operationId": "patch_embed_tokens_id",
        "tags": [
          "embed-tokens"
        ],
        "summary": "Edit a token (admin).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_embed_tokens_id",
        "tags": [
          "embed-tokens"
        ],
        "summary": "Revoke (delete) a token (admin).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/chat": {
      "get": {
        "operationId": "get_embed_chat",
        "tags": [
          "embed"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_embed_chat",
        "tags": [
          "embed"
        ],
        "summary": "Start a chat.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/chat/{id}/close": {
      "post": {
        "operationId": "post_embed_chat_id_close",
        "tags": [
          "embed"
        ],
        "summary": "The visitor ends the chat.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/chat/{id}/messages": {
      "get": {
        "operationId": "get_embed_chat_id_messages",
        "tags": [
          "embed"
        ],
        "summary": "The transcript so far (resume after a reload) + current state.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_embed_chat_id_messages",
        "tags": [
          "embed"
        ],
        "summary": "The visitor says something.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/chat/{id}/stream": {
      "get": {
        "operationId": "get_embed_chat_id_stream",
        "tags": [
          "embed"
        ],
        "summary": "Server-Sent Events for one chat.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/config": {
      "get": {
        "operationId": "get_embed_config",
        "tags": [
          "embed"
        ],
        "summary": "The browser SDK's discovery call.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/ingest": {
      "post": {
        "operationId": "post_embed_ingest",
        "tags": [
          "embed"
        ],
        "summary": "Form-capture ingest.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/records/{entityKey}": {
      "post": {
        "operationId": "post_embed_records_entityKey",
        "tags": [
          "embed"
        ],
        "summary": "Create a record from an embedded form / captured submit.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/verify": {
      "get": {
        "operationId": "get_embed_verify",
        "tags": [
          "embed"
        ],
        "summary": "Poll a case's status/decision.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_embed_verify",
        "tags": [
          "embed"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/verify/token": {
      "post": {
        "operationId": "post_embed_verify_token",
        "tags": [
          "embed"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/embed/workflows/trigger": {
      "post": {
        "operationId": "post_embed_workflows_trigger",
        "tags": [
          "embed"
        ],
        "summary": "Fire a workflow from an embedded action button.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/endpoints": {
      "get": {
        "operationId": "get_endpoints",
        "tags": [
          "endpoints"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/endpoints/register": {
      "post": {
        "operationId": "post_endpoints_register",
        "tags": [
          "endpoints"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities": {
      "get": {
        "operationId": "get_entities",
        "tags": [
          "entities"
        ],
        "summary": "List this workspace's configurable entity defs (+ fields).",
        "x-api-key-access": "schema:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/fields": {
      "post": {
        "operationId": "post_entities_entityKey_fields",
        "tags": [
          "entities"
        ],
        "summary": "Add a custom field (admin only).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/fields/{fieldId}": {
      "patch": {
        "operationId": "patch_entities_entityKey_fields_fieldId",
        "tags": [
          "entities"
        ],
        "summary": "Edit a field (admin only).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fieldId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_entities_entityKey_fields_fieldId",
        "tags": [
          "entities"
        ],
        "summary": "Remove a custom field (admin only).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fieldId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/form-layout": {
      "get": {
        "operationId": "get_entities_entityKey_form_layout",
        "tags": [
          "entities"
        ],
        "summary": "A named form's layout + available fields.",
        "x-api-key-access": "schema:read",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_entities_entityKey_form_layout",
        "tags": [
          "entities"
        ],
        "summary": "Save one named form (admin only).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_entities_entityKey_form_layout",
        "tags": [
          "entities"
        ],
        "summary": "Drop a role-specific record layout (that role falls back to the default form).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/forms": {
      "get": {
        "operationId": "get_entities_entityKey_forms",
        "tags": [
          "entities"
        ],
        "summary": "The entity's named forms (default first).",
        "x-api-key-access": "schema:read",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_entities_entityKey_forms",
        "tags": [
          "entities"
        ],
        "summary": "Create a new custom form; optionally seeded from another form's layout.",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_entities_entityKey_forms",
        "tags": [
          "entities"
        ],
        "summary": "Rename a form and/or promote it to the entity default.",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_entities_entityKey_forms",
        "tags": [
          "entities"
        ],
        "summary": "Remove a custom form (never the primary 'default').",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/lifecycle": {
      "get": {
        "operationId": "get_entities_entityKey_lifecycle",
        "tags": [
          "entities"
        ],
        "summary": "States + transitions.",
        "x-api-key-access": "schema:read",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_entities_entityKey_lifecycle",
        "tags": [
          "entities"
        ],
        "summary": "Replace the lifecycle (admin only).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/list-columns": {
      "get": {
        "operationId": "get_entities_entityKey_list_columns",
        "tags": [
          "entities"
        ],
        "summary": "Available columns + the caller's resolved selection.",
        "x-api-key-access": "schema:read",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_entities_entityKey_list_columns",
        "tags": [
          "entities"
        ],
        "summary": "Save personal (default needs admin).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_entities_entityKey_list_columns",
        "tags": [
          "entities"
        ],
        "summary": "Clear the caller's personal override.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/related-columns": {
      "get": {
        "operationId": "get_entities_entityKey_related_columns",
        "tags": [
          "entities"
        ],
        "summary": "The child entity's choosable columns + its current related-list selection.",
        "x-api-key-access": "schema:read",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_entities_entityKey_related_columns",
        "tags": [
          "entities"
        ],
        "summary": "Set the shared related-list columns for this entity (admin only).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/rules": {
      "get": {
        "operationId": "get_entities_entityKey_rules",
        "tags": [
          "entities"
        ],
        "summary": "All rules for the entity + its fields/states (for the editor).",
        "x-api-key-access": "schema:read",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_entities_entityKey_rules",
        "tags": [
          "entities"
        ],
        "summary": "Replace the tenant-authored rules (admin only).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/entities/{entityKey}/views": {
      "get": {
        "operationId": "get_entities_entityKey_views",
        "tags": [
          "entities"
        ],
        "summary": "Built-in + shared (visible to the caller's role) + personal views.",
        "x-api-key-access": "schema:read",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_entities_entityKey_views",
        "tags": [
          "entities"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_entities_entityKey_views",
        "tags": [
          "entities"
        ],
        "summary": "Replace a view's spec (owner for personal, admin for shared).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_entities_entityKey_views",
        "tags": [
          "entities"
        ],
        "summary": "Pin as default / toggle nav (admin, shared views).",
        "x-api-key-access": "schema:write",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "schema:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_entities_entityKey_views",
        "tags": [
          "entities"
        ],
        "summary": "Delete a personal (owner) or shared (admin) view.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/download/{token}": {
      "get": {
        "operationId": "get_esign_download_token",
        "tags": [
          "esign"
        ],
        "summary": "The sealed PDF for a recipient outside the workspace (link in the completion email; 30 days).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes": {
      "get": {
        "operationId": "get_esign_envelopes",
        "tags": [
          "esign"
        ],
        "summary": "Envelopes the caller may read.",
        "x-api-key-access": "esign:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_esign_envelopes",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}": {
      "get": {
        "operationId": "get_esign_envelopes_id",
        "tags": [
          "esign"
        ],
        "summary": "Status, recipients, fields.",
        "x-api-key-access": "esign:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_esign_envelopes_id",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}/audit": {
      "get": {
        "operationId": "get_esign_envelopes_id_audit",
        "tags": [
          "esign"
        ],
        "summary": "The hash-chained trail and whether it verifies (chain, head, sealed anchor).",
        "x-api-key-access": "esign:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}/documents/{docId}": {
      "get": {
        "operationId": "get_esign_envelopes_id_documents_docId",
        "tags": [
          "esign"
        ],
        "summary": "An original PDF as sent (readers of the envelope).",
        "x-api-key-access": "esign:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "docId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}/legal-hold": {
      "post": {
        "operationId": "post_esign_envelopes_id_legal_hold",
        "tags": [
          "esign"
        ],
        "summary": "E-signature admins only; audited.",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}/remind": {
      "post": {
        "operationId": "post_esign_envelopes_id_remind",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}/sealed": {
      "get": {
        "operationId": "get_esign_envelopes_id_sealed",
        "tags": [
          "esign"
        ],
        "summary": "The sealed PDF (readers of the envelope; it also sits on the subject record).",
        "x-api-key-access": "esign:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}/send": {
      "post": {
        "operationId": "post_esign_envelopes_id_send",
        "tags": [
          "esign"
        ],
        "summary": "Send a draft (the provider issues links / notices).",
        "x-api-key-access": "esign:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/envelopes/{id}/void": {
      "post": {
        "operationId": "post_esign_envelopes_id_void",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/sign/{recipientId}": {
      "post": {
        "operationId": "post_esign_sign_recipientId",
        "tags": [
          "esign"
        ],
        "summary": "A MEMBER signs their own envelope in the app.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "recipientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/sign/{recipientId}/document/{docId}": {
      "get": {
        "operationId": "get_esign_sign_recipientId_document_docId",
        "tags": [
          "esign"
        ],
        "summary": "A document the signed-in member is asked to sign.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "recipientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "docId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/status": {
      "get": {
        "operationId": "get_esign_status",
        "tags": [
          "esign"
        ],
        "summary": "The seal key, its certificate (expiry), the TSA and the last timestamp (e-signature admins).",
        "x-api-key-access": "esign:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/templates": {
      "get": {
        "operationId": "get_esign_templates",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_esign_templates",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/templates/{id}": {
      "get": {
        "operationId": "get_esign_templates_id",
        "tags": [
          "esign"
        ],
        "summary": "Id (id or key).",
        "x-api-key-access": "esign:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_esign_templates_id",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_esign_templates_id",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "esign:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/templates/{id}/document": {
      "get": {
        "operationId": "get_esign_templates_id_document",
        "tags": [
          "esign"
        ],
        "summary": "The template's PDF (the field editor renders it).",
        "x-api-key-access": "esign:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "esign:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/esign/verify": {
      "get": {
        "operationId": "get_esign_verify",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_esign_verify",
        "tags": [
          "esign"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/export": {
      "get": {
        "operationId": "get_export",
        "tags": [
          "export"
        ],
        "summary": "Whole-workspace export as a ZIP of per-entity CSVs (admin).",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/export/{entityKey}": {
      "get": {
        "operationId": "get_export_entityKey",
        "tags": [
          "export"
        ],
        "summary": "That entity's rows as a CSV download (admin).",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/export/schema": {
      "get": {
        "operationId": "get_export_schema",
        "tags": [
          "export"
        ],
        "summary": "Runnable DDL + data for the data model (admin).",
        "x-api-key-access": "schema:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "schema:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/forms/{id}": {
      "get": {
        "operationId": "get_forms_id",
        "tags": [
          "forms"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/forms/{id}/submit": {
      "post": {
        "operationId": "post_forms_id_submit",
        "tags": [
          "forms"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/fx/convert": {
      "post": {
        "operationId": "post_fx_convert",
        "tags": [
          "fx"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/fx/rates": {
      "get": {
        "operationId": "get_fx_rates",
        "tags": [
          "fx"
        ],
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_fx_rates",
        "tags": [
          "fx"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/fx/sync": {
      "post": {
        "operationId": "post_fx_sync",
        "tags": [
          "fx"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/geo": {
      "get": {
        "operationId": "get_geo",
        "tags": [
          "geo"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "operationId": "get_health",
        "tags": [
          "health"
        ],
        "summary": "Public liveness/readiness probe.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/hook/{token}": {
      "get": {
        "operationId": "get_hook_token",
        "tags": [
          "hook"
        ],
        "x-api-key-access": "endpoints:invoke",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_hook_token",
        "tags": [
          "hook"
        ],
        "x-api-key-access": "endpoints:invoke",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_hook_token",
        "tags": [
          "hook"
        ],
        "x-api-key-access": "endpoints:invoke",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_hook_token",
        "tags": [
          "hook"
        ],
        "x-api-key-access": "endpoints:invoke",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_hook_token",
        "tags": [
          "hook"
        ],
        "x-api-key-access": "endpoints:invoke",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import": {
      "get": {
        "operationId": "get_import",
        "tags": [
          "import"
        ],
        "summary": "List draft staging batches.",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_import",
        "tags": [
          "import"
        ],
        "summary": "Create a staging batch.",
        "x-api-key-access": "import:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/{id}": {
      "get": {
        "operationId": "get_import_id",
        "tags": [
          "import"
        ],
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_import_id",
        "tags": [
          "import"
        ],
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_import_id",
        "tags": [
          "import"
        ],
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/{id}/profile": {
      "post": {
        "operationId": "post_import_id_profile",
        "tags": [
          "import"
        ],
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/{id}/promote": {
      "post": {
        "operationId": "post_import_id_promote",
        "tags": [
          "import"
        ],
        "summary": "Turn a staged batch into a new app/entity or import into an existing one.",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/projects": {
      "get": {
        "operationId": "get_import_projects",
        "tags": [
          "import"
        ],
        "summary": "List draft multi-source import projects.",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_import_projects",
        "tags": [
          "import"
        ],
        "summary": "Start a new project.",
        "x-api-key-access": "import:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/projects/{id}": {
      "get": {
        "operationId": "get_import_projects_id",
        "tags": [
          "import"
        ],
        "summary": "The project + its staged source tables + any proposal.",
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_import_projects_id",
        "tags": [
          "import"
        ],
        "summary": "Discard the project + its staged batches.",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/projects/{id}/commit": {
      "post": {
        "operationId": "post_import_projects_id_commit",
        "tags": [
          "import"
        ],
        "summary": "Build entities/fields/records from the (optionally edited) proposal.",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/projects/{id}/design": {
      "post": {
        "operationId": "post_import_projects_id_design",
        "tags": [
          "import"
        ],
        "summary": "AI-propose a normalized schema across the source tables.",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs": {
      "get": {
        "operationId": "get_import_runs",
        "tags": [
          "import"
        ],
        "summary": "List staging import runs (admin only).",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs/{id}": {
      "get": {
        "operationId": "get_import_runs_id",
        "tags": [
          "import"
        ],
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs/{id}/automap": {
      "post": {
        "operationId": "post_import_runs_id_automap",
        "tags": [
          "import"
        ],
        "summary": "Given a source staging entity + a target entity, suggest a field mapping (exact key/label match, then fuzzy).",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs/{id}/discard": {
      "post": {
        "operationId": "post_import_runs_id_discard",
        "tags": [
          "import"
        ],
        "summary": "Delete a run and all of its staged records.",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs/{id}/new-target": {
      "post": {
        "operationId": "post_import_runs_id_new_target",
        "tags": [
          "import"
        ],
        "summary": "Create a new real table mirroring a staging entity's columns, to promote into when no suitable table exists yet.",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs/{id}/promote": {
      "post": {
        "operationId": "post_import_runs_id_promote",
        "tags": [
          "import"
        ],
        "summary": "Map a staging entity's records into a target entity and upsert.",
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs/{id}/promote-cascade": {
      "post": {
        "operationId": "post_import_runs_id_promote_cascade",
        "tags": [
          "import"
        ],
        "x-api-key-access": "import:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/runs/{id}/records": {
      "get": {
        "operationId": "get_import_runs_id_records",
        "tags": [
          "import"
        ],
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/stage": {
      "post": {
        "operationId": "post_import_stage",
        "tags": [
          "import"
        ],
        "summary": "Stage a batch's rows into a run + staging entities using the (possibly user-edited) proposal.",
        "x-api-key-access": "import:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/import/stage/detect": {
      "post": {
        "operationId": "post_import_stage_detect",
        "tags": [
          "import"
        ],
        "x-api-key-access": "import:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "import:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/inbound/email": {
      "post": {
        "operationId": "post_inbound_email",
        "tags": [
          "inbound"
        ],
        "summary": "Generic inbound-email webhook.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/inbound/mailbox": {
      "get": {
        "operationId": "get_inbound_mailbox",
        "tags": [
          "inbound"
        ],
        "summary": "The workspace's inbound address + enabled state.",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_inbound_mailbox",
        "tags": [
          "inbound"
        ],
        "summary": "Enable/disable email intake (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/incidents/{id}/major": {
      "post": {
        "operationId": "post_incidents_id_major",
        "tags": [
          "incidents"
        ],
        "summary": "Declare / update / stand down a major incident.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/integrations": {
      "get": {
        "operationId": "get_integrations",
        "tags": [
          "integrations"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_integrations",
        "tags": [
          "integrations"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/integrations/{id}": {
      "get": {
        "operationId": "get_integrations_id",
        "tags": [
          "integrations"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_integrations_id",
        "tags": [
          "integrations"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_integrations_id",
        "tags": [
          "integrations"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/integrations/{id}/test": {
      "post": {
        "operationId": "post_integrations_id_test",
        "tags": [
          "integrations"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/integrations/{id}/test-email": {
      "post": {
        "operationId": "post_integrations_id_test_email",
        "tags": [
          "integrations"
        ],
        "summary": "Actually send a test message via this email integration, to confirm real delivery (beyond the connection test).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/integrations/options": {
      "get": {
        "operationId": "get_integrations_options",
        "tags": [
          "integrations"
        ],
        "summary": "The integrations of one type that a record field's provider picker offers.",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/integrations/plugins": {
      "get": {
        "operationId": "get_integrations_plugins",
        "tags": [
          "integrations"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/invites": {
      "get": {
        "operationId": "get_invites",
        "tags": [
          "invites"
        ],
        "summary": "Pending invites, expired ones included (admin only; invite tokens only for sessions and members:write keys).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_invites",
        "tags": [
          "invites"
        ],
        "summary": "Invite someone (admin only).",
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/invites/{id}": {
      "delete": {
        "operationId": "delete_invites_id",
        "tags": [
          "invites"
        ],
        "summary": "Revoke a pending invite (admin only).",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/invites/{id}/resend": {
      "post": {
        "operationId": "post_invites_id_resend",
        "tags": [
          "invites"
        ],
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/invites/accept": {
      "post": {
        "operationId": "post_invites_accept",
        "tags": [
          "invites"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/keys": {
      "post": {
        "operationId": "post_keys",
        "tags": [
          "keys"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/keys/{id}": {
      "delete": {
        "operationId": "delete_keys_id",
        "tags": [
          "keys"
        ],
        "summary": "Revoke an API key.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/knowledge/search": {
      "post": {
        "operationId": "post_knowledge_search",
        "tags": [
          "knowledge"
        ],
        "summary": "Published KB articles matching the query (case deflection).",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "post_mcp",
        "tags": [
          "mcp"
        ],
        "x-api-key-access": "endpoints:invoke",
        "x-api-key-any-of": [
          "spec:read",
          "spec:propose",
          "spec:apply",
          "records:read",
          "members:write",
          "apps:read",
          "apps:install",
          "settings:write"
        ],
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "endpoints:invoke",
              "spec:read",
              "spec:propose",
              "spec:apply",
              "records:read",
              "members:write",
              "apps:read",
              "apps:install",
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/mcp/servers": {
      "get": {
        "operationId": "get_mcp_servers",
        "tags": [
          "mcp"
        ],
        "summary": "List servers (headers omitted; they're secrets).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_mcp_servers",
        "tags": [
          "mcp"
        ],
        "summary": "Register a server (admin).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/mcp/servers/{id}": {
      "post": {
        "operationId": "post_mcp_servers_id",
        "tags": [
          "mcp"
        ],
        "summary": "Test the connection + sync the tool list (admin).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_mcp_servers_id",
        "tags": [
          "mcp"
        ],
        "summary": "Update/enable/disable (admin).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_mcp_servers_id",
        "tags": [
          "mcp"
        ],
        "summary": "Remove the server (admin).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/members": {
      "get": {
        "operationId": "get_members",
        "tags": [
          "members"
        ],
        "summary": "Workspace members.",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/members/{userId}": {
      "patch": {
        "operationId": "patch_members_userId",
        "tags": [
          "members"
        ],
        "summary": "Change a member's role, subtree scope, and/or app allowlist (admin only).",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_members_userId",
        "tags": [
          "members"
        ],
        "summary": "Remove a member (admin only; not the owner).",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/modules": {
      "get": {
        "operationId": "get_modules",
        "tags": [
          "modules"
        ],
        "summary": "Available modules + which this workspace has enabled.",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_modules",
        "tags": [
          "modules"
        ],
        "summary": "Install a module.",
        "x-api-key-access": "apps:install",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/nav/apps": {
      "get": {
        "operationId": "get_nav_apps",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_nav_apps",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/nav/apps/{appKey}": {
      "put": {
        "operationId": "put_nav_apps_appKey",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_nav_apps_appKey",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/nav/defaults": {
      "get": {
        "operationId": "get_nav_defaults",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_nav_defaults",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_nav_defaults",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/nav/prefs": {
      "get": {
        "operationId": "get_nav_prefs",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_nav_prefs",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_nav_prefs",
        "tags": [
          "nav"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications": {
      "get": {
        "operationId": "get_notifications",
        "tags": [
          "notifications"
        ],
        "summary": "Recent notifications + unread count for the current user/workspace.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_notifications",
        "tags": [
          "notifications"
        ],
        "summary": "Mark one (id) or all (no id) notifications read.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/action-log": {
      "get": {
        "operationId": "get_notifications_action_log",
        "tags": [
          "notifications"
        ],
        "summary": "Every Approve / Reject press from a message, newest first (admins).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/connections": {
      "get": {
        "operationId": "get_notifications_connections",
        "tags": [
          "notifications"
        ],
        "summary": "Slack, Teams and Twilio connections (admins).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/connections/{provider}": {
      "get": {
        "operationId": "get_notifications_connections_provider",
        "tags": [
          "notifications"
        ],
        "summary": "One connection (admins).",
        "x-api-key-access": "settings:read",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_notifications_connections_provider",
        "tags": [
          "notifications"
        ],
        "summary": "Create or update (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_notifications_connections_provider",
        "tags": [
          "notifications"
        ],
        "summary": "Disconnect (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/connections/{provider}/test": {
      "post": {
        "operationId": "post_notifications_connections_provider_test",
        "tags": [
          "notifications"
        ],
        "summary": "A sanity call with the stored credentials (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/deliveries": {
      "get": {
        "operationId": "get_notifications_deliveries",
        "tags": [
          "notifications"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/deliveries/{id}": {
      "get": {
        "operationId": "get_notifications_deliveries_id",
        "tags": [
          "notifications"
        ],
        "summary": "One delivery: the rendered message, its log and button presses (admins).",
        "x-api-key-access": "settings:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/deliveries/{id}/retry": {
      "post": {
        "operationId": "post_notifications_deliveries_id_retry",
        "tags": [
          "notifications"
        ],
        "summary": "Put a dead (or failed) delivery back in the queue now (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/identities": {
      "get": {
        "operationId": "get_notifications_identities",
        "tags": [
          "notifications"
        ],
        "summary": "Every member and their linked account (admins).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_notifications_identities",
        "tags": [
          "notifications"
        ],
        "summary": "Link or unlink one member by hand (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/identities/sync": {
      "post": {
        "operationId": "post_notifications_identities_sync",
        "tags": [
          "notifications"
        ],
        "summary": "Auto-link members by their account email (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/prefs": {
      "get": {
        "operationId": "get_notifications_prefs",
        "tags": [
          "notifications"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_notifications_prefs",
        "tags": [
          "notifications"
        ],
        "summary": "Save the caller's own prefs (self only).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/preview": {
      "post": {
        "operationId": "post_notifications_preview",
        "tags": [
          "notifications"
        ],
        "summary": "Render a message the way the channel would send it, as YOU (your field access), for the template editor (admins).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/push-subscriptions": {
      "get": {
        "operationId": "get_notifications_push_subscriptions",
        "tags": [
          "notifications"
        ],
        "summary": "The caller's own push devices in this workspace.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_notifications_push_subscriptions",
        "tags": [
          "notifications"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/push-subscriptions/{id}": {
      "delete": {
        "operationId": "delete_notifications_push_subscriptions_id",
        "tags": [
          "notifications"
        ],
        "summary": "Turn push off for one of the caller's own devices.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/push-subscriptions/test": {
      "post": {
        "operationId": "post_notifications_push_subscriptions_test",
        "tags": [
          "notifications"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/push/key": {
      "get": {
        "operationId": "get_notifications_push_key",
        "tags": [
          "notifications"
        ],
        "summary": "The instance VAPID public key (applicationServerKey for pushManager.subscribe).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/rules": {
      "get": {
        "operationId": "get_notifications_rules",
        "tags": [
          "notifications"
        ],
        "summary": "The workspace's shared routing rules.",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_notifications_rules",
        "tags": [
          "notifications"
        ],
        "summary": "Replace the rule set (admins only).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/settings": {
      "get": {
        "operationId": "get_notifications_settings",
        "tags": [
          "notifications"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_notifications_settings",
        "tags": [
          "notifications"
        ],
        "summary": "Replace the policy (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notifications/stream": {
      "get": {
        "operationId": "get_notifications_stream",
        "tags": [
          "notifications"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notify/actions": {
      "post": {
        "operationId": "post_notify_actions",
        "tags": [
          "notify"
        ],
        "summary": "An Approve / Reject press from an email (via its confirmation page) or a web-push notification.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notify/push/receipt": {
      "post": {
        "operationId": "post_notify_push_receipt",
        "tags": [
          "notify"
        ],
        "summary": "The service worker showed a push notification.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notify/slack/interactions": {
      "post": {
        "operationId": "post_notify_slack_interactions",
        "tags": [
          "notify"
        ],
        "summary": "Receive an Approve or Reject press from a Slack notification.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notify/teams/messages": {
      "post": {
        "operationId": "post_notify_teams_messages",
        "tags": [
          "notify"
        ],
        "summary": "The messaging endpoint of the Microsoft Teams bot (Bot Framework).",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/notify/twilio/status/{id}": {
      "post": {
        "operationId": "post_notify_twilio_status_id",
        "tags": [
          "notify"
        ],
        "summary": "Twilio's StatusCallback for one message.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/oidc/clients": {
      "get": {
        "operationId": "get_oidc_clients",
        "tags": [
          "oidc"
        ],
        "summary": "Register / list OIDC client applications (Ligament-as-IdP).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_oidc_clients",
        "tags": [
          "oidc"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/onboard/{action}": {
      "post": {
        "operationId": "post_onboard_action",
        "tags": [
          "onboard"
        ],
        "summary": "The new hire's portal (guest session cookie; the request never names a journey: the session does).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "action",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/onboard/upload": {
      "post": {
        "operationId": "post_onboard_upload",
        "tags": [
          "onboard"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/onboarding/journeys/{id}/{action}": {
      "post": {
        "operationId": "post_onboarding_journeys_id_action",
        "tags": [
          "onboarding"
        ],
        "summary": "The back office's journey actions.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "action",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/onboarding/payroll-csv": {
      "get": {
        "operationId": "get_onboarding_payroll_csv",
        "tags": [
          "onboarding"
        ],
        "summary": "Payroll's bank-details CSV.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/outreach/open": {
      "get": {
        "operationId": "get_outreach_open",
        "tags": [
          "outreach"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/outreach/unsubscribe": {
      "get": {
        "operationId": "get_outreach_unsubscribe",
        "tags": [
          "outreach"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/page-specs": {
      "get": {
        "operationId": "get_page_specs",
        "tags": [
          "page-specs"
        ],
        "summary": "Pages applied from a page spec (key, title, hash, url).",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/page-specs/{key}": {
      "get": {
        "operationId": "get_page_specs_key",
        "tags": [
          "page-specs"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/page-specs/apply": {
      "post": {
        "operationId": "post_page_specs_apply",
        "tags": [
          "page-specs"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/page-specs/plan": {
      "post": {
        "operationId": "post_page_specs_plan",
        "tags": [
          "page-specs"
        ],
        "summary": "Validate, then diff against the applied page.",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/page-specs/schema": {
      "get": {
        "operationId": "get_page_specs_schema",
        "tags": [
          "page-specs"
        ],
        "summary": "JSON Schemas (page, per-block props, component manifest) + the block registry and limits.",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/page-specs/validate": {
      "post": {
        "operationId": "post_page_specs_validate",
        "tags": [
          "page-specs"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/pages": {
      "get": {
        "operationId": "get_pages",
        "tags": [
          "pages"
        ],
        "summary": "Custom pages (optionally for one app).",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_pages",
        "tags": [
          "pages"
        ],
        "summary": "Create/update a page (admin).",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/pages/{id}": {
      "get": {
        "operationId": "get_pages_id",
        "tags": [
          "pages"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_pages_id",
        "tags": [
          "pages"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plans": {
      "get": {
        "operationId": "get_plans",
        "tags": [
          "plans"
        ],
        "summary": "The caller's build plans (optionally for one app).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_plans",
        "tags": [
          "plans"
        ],
        "summary": "Create a plan (usually the agent's propose_plan tool, but a manual create works too).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plans/{id}": {
      "get": {
        "operationId": "get_plans_id",
        "tags": [
          "plans"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_plans_id",
        "tags": [
          "plans"
        ],
        "summary": "Title / status.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_plans_id",
        "tags": [
          "plans"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plans/{id}/tasks": {
      "post": {
        "operationId": "post_plans_id_tasks",
        "tags": [
          "plans"
        ],
        "summary": "Add a task to the plan.",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plans/{id}/tasks/{taskId}": {
      "patch": {
        "operationId": "patch_plans_id_tasks_taskId",
        "tags": [
          "plans"
        ],
        "summary": "Edit a task: status (check off), title/detail, reorder (afterId), or deps/agent (frame).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_plans_id_tasks_taskId",
        "tags": [
          "plans"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins": {
      "get": {
        "operationId": "get_plugins",
        "tags": [
          "plugins"
        ],
        "summary": "Every connector (built-in, tenant-authored, shared from a parent org) with this workspace's install state.",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_plugins",
        "tags": [
          "plugins"
        ],
        "summary": "Create/update a tenant-authored connector.",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/{key}": {
      "patch": {
        "operationId": "patch_plugins_key",
        "tags": [
          "plugins"
        ],
        "summary": "Update connector settings (currently: org sharing of an approved connector).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_plugins_key",
        "tags": [
          "plugins"
        ],
        "summary": "Remove a tenant-authored connector (and its install).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/{key}/functions": {
      "put": {
        "operationId": "put_plugins_key_functions",
        "tags": [
          "plugins"
        ],
        "summary": "Replace the named functions of a tenant connector.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/{key}/install": {
      "post": {
        "operationId": "post_plugins_key_install",
        "tags": [
          "plugins"
        ],
        "summary": "Install/configure the plugin for this workspace.",
        "x-api-key-access": "apps:install",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_plugins_key_install",
        "tags": [
          "plugins"
        ],
        "summary": "Uninstall the plugin from this workspace.",
        "x-api-key-access": "apps:install",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/{key}/oauth/client": {
      "get": {
        "operationId": "get_plugins_key_oauth_client",
        "tags": [
          "plugins"
        ],
        "summary": "OAuth connection status (no tokens).",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_plugins_key_oauth_client",
        "tags": [
          "plugins"
        ],
        "summary": "Store the tenant's app-registration creds (workspace admins).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_plugins_key_oauth_client",
        "tags": [
          "plugins"
        ],
        "summary": "Disconnect (clears stored tokens; keeps client creds).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/{key}/oauth/start": {
      "get": {
        "operationId": "get_plugins_key_oauth_start",
        "tags": [
          "plugins"
        ],
        "summary": "Begin the OAuth2 authorization-code flow.",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/{key}/publish": {
      "get": {
        "operationId": "get_plugins_key_publish",
        "tags": [
          "plugins"
        ],
        "summary": "This connector's store-submission state (if any).",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_plugins_key_publish",
        "tags": [
          "plugins"
        ],
        "summary": "Submit this workspace's connector for public store review (or publish an update).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_plugins_key_publish",
        "tags": [
          "plugins"
        ],
        "summary": "Pull this workspace's connector from the store (existing installs keep their copy).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/{key}/update": {
      "post": {
        "operationId": "post_plugins_key_update",
        "tags": [
          "plugins"
        ],
        "summary": "Re-sync a store-installed connector to the publisher's latest version (credentials kept).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/import": {
      "post": {
        "operationId": "post_plugins_import",
        "tags": [
          "plugins"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/inbound/{token}": {
      "post": {
        "operationId": "post_plugins_inbound_token",
        "tags": [
          "plugins"
        ],
        "summary": "The generic inbound webhook for conversation-channel connectors (Telegram today).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/oauth/callback": {
      "get": {
        "operationId": "get_plugins_oauth_callback",
        "tags": [
          "plugins"
        ],
        "summary": "Provider redirects here after consent.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/wizard/{id}": {
      "get": {
        "operationId": "get_plugins_wizard_id",
        "tags": [
          "plugins"
        ],
        "summary": "The install spec (fields, capability, current state) for the wizard.",
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_plugins_wizard_id",
        "tags": [
          "plugins"
        ],
        "summary": "Perform the install/configure.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_plugins_wizard_id",
        "tags": [
          "plugins"
        ],
        "summary": "Uninstall/deactivate the plugin.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/plugins/wizard/{id}/test": {
      "post": {
        "operationId": "post_plugins_wizard_id_test",
        "tags": [
          "plugins"
        ],
        "summary": "Run a provider's connection test (nothing is stored).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/portal": {
      "get": {
        "operationId": "get_portal",
        "tags": [
          "portal"
        ],
        "summary": "The workspace's portal config (any authed user).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_portal",
        "tags": [
          "portal"
        ],
        "summary": "Save the portal config (admins).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/portal/confirm-resolution": {
      "post": {
        "operationId": "post_portal_confirm_resolution",
        "tags": [
          "portal"
        ],
        "summary": "The requester's verdict on the AI Resolver's proposed fix, from the portal button.",
        "x-api-key-access": "records:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/portal/search": {
      "get": {
        "operationId": "get_portal_search",
        "tags": [
          "portal"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/portal/survey": {
      "post": {
        "operationId": "post_portal_survey",
        "tags": [
          "portal"
        ],
        "summary": "Portal survey submission.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/prompts": {
      "get": {
        "operationId": "get_prompts",
        "tags": [
          "prompts"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_prompts",
        "tags": [
          "prompts"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/prompts/{slug}": {
      "get": {
        "operationId": "get_prompts_slug",
        "tags": [
          "prompts"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_prompts_slug",
        "tags": [
          "prompts"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_prompts_slug",
        "tags": [
          "prompts"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/prospecting/lgm-enroll-selected": {
      "post": {
        "operationId": "post_prospecting_lgm_enroll_selected",
        "tags": [
          "prospecting"
        ],
        "x-api-key-access": "workflows:run",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:run"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/prospecting/research-selected": {
      "post": {
        "operationId": "post_prospecting_research_selected",
        "tags": [
          "prospecting"
        ],
        "x-api-key-access": "workflows:run",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:run"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/rag/collections": {
      "get": {
        "operationId": "get_rag_collections",
        "tags": [
          "rag"
        ],
        "x-api-key-access": "ai:use",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_rag_collections",
        "tags": [
          "rag"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/rag/collections/{slug}": {
      "patch": {
        "operationId": "patch_rag_collections_slug",
        "tags": [
          "rag"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_rag_collections_slug",
        "tags": [
          "rag"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/rag/collections/{slug}/documents": {
      "get": {
        "operationId": "get_rag_collections_slug_documents",
        "tags": [
          "rag"
        ],
        "x-api-key-access": "ai:use",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "ai:use"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_rag_collections_slug_documents",
        "tags": [
          "rag"
        ],
        "summary": "Add knowledge.",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_rag_collections_slug_documents",
        "tags": [
          "rag"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}": {
      "get": {
        "operationId": "get_records_entityKey",
        "tags": [
          "records"
        ],
        "summary": "Query records.",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_records_entityKey",
        "tags": [
          "records"
        ],
        "summary": "Create a record.",
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}": {
      "get": {
        "operationId": "get_records_entityKey_id",
        "tags": [
          "records"
        ],
        "summary": "Fetch one record.",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_records_entityKey_id",
        "tags": [
          "records"
        ],
        "summary": "Partial update (system fields + ext custom fields).",
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_records_entityKey_id",
        "tags": [
          "records"
        ],
        "summary": "Delete one record (ACL + row-ACL + before-delete rules apply).",
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/attachments": {
      "get": {
        "operationId": "get_records_entityKey_id_attachments",
        "tags": [
          "records"
        ],
        "summary": "The record's attachments (confirmed only).",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_records_entityKey_id_attachments",
        "tags": [
          "records"
        ],
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/attachments/{attId}": {
      "get": {
        "operationId": "get_records_entityKey_id_attachments_attId",
        "tags": [
          "records"
        ],
        "summary": "302 to a short-lived download URL.",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "attId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_records_entityKey_id_attachments_attId",
        "tags": [
          "records"
        ],
        "summary": "Confirm the upload completed.",
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "attId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_records_entityKey_id_attachments_attId",
        "tags": [
          "records"
        ],
        "summary": "Remove file + metadata.",
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "attId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/comments": {
      "get": {
        "operationId": "get_records_entityKey_id_comments",
        "tags": [
          "records"
        ],
        "summary": "The record's comments + work notes.",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_records_entityKey_id_comments",
        "tags": [
          "records"
        ],
        "summary": "Add a comment / work note.",
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/history": {
      "get": {
        "operationId": "get_records_entityKey_id_history",
        "tags": [
          "records"
        ],
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/live": {
      "get": {
        "operationId": "get_records_entityKey_id_live",
        "tags": [
          "records"
        ],
        "summary": "Per-record real-time channel (SSE).",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/merge": {
      "post": {
        "operationId": "post_records_entityKey_id_merge",
        "tags": [
          "records"
        ],
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/reveal": {
      "post": {
        "operationId": "post_records_entityKey_id_reveal",
        "tags": [
          "records"
        ],
        "summary": "The clear values of fields the caller sees masked on this record.",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/{id}/transition": {
      "post": {
        "operationId": "post_records_entityKey_id_transition",
        "tags": [
          "records"
        ],
        "summary": "Move a record to a new state.",
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/batch": {
      "post": {
        "operationId": "post_records_entityKey_batch",
        "tags": [
          "records"
        ],
        "x-api-key-access": "records:write:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:write:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/changes": {
      "get": {
        "operationId": "get_records_entityKey_changes",
        "tags": [
          "records"
        ],
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/{entityKey}/effective-events": {
      "get": {
        "operationId": "get_records_entityKey_effective_events",
        "tags": [
          "records"
        ],
        "summary": "List the changes that take effect in a period on an effective-dated entity, as JSON or CSV (for payroll).",
        "x-api-key-access": "records:read:[entityKey]",
        "parameters": [
          {
            "name": "entityKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read:[entityKey]"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/records/batch": {
      "post": {
        "operationId": "post_records_batch",
        "tags": [
          "records"
        ],
        "x-api-key-access": "records:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/reports": {
      "get": {
        "operationId": "get_reports",
        "tags": [
          "reports"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_reports",
        "tags": [
          "reports"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_reports",
        "tags": [
          "reports"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/reports/run": {
      "post": {
        "operationId": "post_reports_run",
        "tags": [
          "reports"
        ],
        "summary": "Run an ad-hoc aggregation for the builder preview (read-gated).",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/roles": {
      "get": {
        "operationId": "get_roles",
        "tags": [
          "roles"
        ],
        "summary": "Workspace roles (built-in + custom).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_roles",
        "tags": [
          "roles"
        ],
        "summary": "Add a custom role (build:access: owners/admins).",
        "x-api-key-access": "members:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/roles/{key}": {
      "patch": {
        "operationId": "patch_roles_key",
        "tags": [
          "roles"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_roles_key",
        "tags": [
          "roles"
        ],
        "summary": "Remove a custom role (build:access; built-ins + in-use blocked).",
        "x-api-key-access": "members:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "members:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/tokens": {
      "get": {
        "operationId": "get_scim_tokens",
        "tags": [
          "scim"
        ],
        "summary": "List this workspace's SCIM tokens (metadata only, never the secret).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_scim_tokens",
        "tags": [
          "scim"
        ],
        "summary": "Mint a SCIM bearer token.",
        "x-api-key-access": "sso:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "sso:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/tokens/{id}": {
      "delete": {
        "operationId": "delete_scim_tokens_id",
        "tags": [
          "scim"
        ],
        "summary": "Revoke a SCIM token (scoped to the caller's workspace).",
        "x-api-key-access": "sso:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "sso:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/v2/Groups": {
      "get": {
        "operationId": "get_scim_v2_Groups",
        "tags": [
          "scim"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_scim_v2_Groups",
        "tags": [
          "scim"
        ],
        "summary": "Create a group (members optional; each must be a user of this workspace).",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/v2/Groups/{id}": {
      "get": {
        "operationId": "get_scim_v2_Groups_id",
        "tags": [
          "scim"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_scim_v2_Groups_id",
        "tags": [
          "scim"
        ],
        "summary": "Replace displayName and members.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_scim_v2_Groups_id",
        "tags": [
          "scim"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_scim_v2_Groups_id",
        "tags": [
          "scim"
        ],
        "summary": "The group goes (its members and role mappings with it).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/v2/ResourceTypes": {
      "get": {
        "operationId": "get_scim_v2_ResourceTypes",
        "tags": [
          "scim"
        ],
        "summary": "The resource types we expose (User, Group).",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/v2/Schemas": {
      "get": {
        "operationId": "get_scim_v2_Schemas",
        "tags": [
          "scim"
        ],
        "summary": "The core User and Group schemas (enough for Entra/Okta attribute mapping).",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/v2/ServiceProviderConfig": {
      "get": {
        "operationId": "get_scim_v2_ServiceProviderConfig",
        "tags": [
          "scim"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/v2/Users": {
      "get": {
        "operationId": "get_scim_v2_Users",
        "tags": [
          "scim"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_scim_v2_Users",
        "tags": [
          "scim"
        ],
        "summary": "Provision a user into the token's workspace.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scim/v2/Users/{id}": {
      "get": {
        "operationId": "get_scim_v2_Users_id",
        "tags": [
          "scim"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_scim_v2_Users_id",
        "tags": [
          "scim"
        ],
        "summary": "Full replace (name + active).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_scim_v2_Users_id",
        "tags": [
          "scim"
        ],
        "summary": "The deactivation + attribute-edit path (Entra/Okta).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_scim_v2_Users_id",
        "tags": [
          "scim"
        ],
        "summary": "Deprovision (remove membership).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/script-test": {
      "post": {
        "operationId": "post_script_test",
        "tags": [
          "script-test"
        ],
        "summary": "Try a script (unsaved) with a sample input — powers the editor's Run button.",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scripts": {
      "get": {
        "operationId": "get_scripts",
        "tags": [
          "scripts"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_scripts",
        "tags": [
          "scripts"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/scripts/{key}": {
      "get": {
        "operationId": "get_scripts_key",
        "tags": [
          "scripts"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_scripts_key",
        "tags": [
          "scripts"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "patch": {
        "operationId": "patch_scripts_key",
        "tags": [
          "scripts"
        ],
        "summary": "Mint a new endpoint URL (revokes the old token).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_scripts_key",
        "tags": [
          "scripts"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/seal/verify": {
      "get": {
        "operationId": "get_seal_verify",
        "tags": [
          "seal"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_seal_verify",
        "tags": [
          "seal"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/search": {
      "get": {
        "operationId": "get_search",
        "tags": [
          "search"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/search-records": {
      "get": {
        "operationId": "get_search_records",
        "tags": [
          "search-records"
        ],
        "summary": "Deterministic, ACL-scoped record search (the ⌘K command palette).",
        "x-api-key-access": "records:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/secrets": {
      "get": {
        "operationId": "get_secrets",
        "tags": [
          "secrets"
        ],
        "summary": "List secret key names (values never returned).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_secrets",
        "tags": [
          "secrets"
        ],
        "summary": "Create/update a secret (admins only; CLI API keys count as admin).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/secrets/{key}": {
      "delete": {
        "operationId": "delete_secrets_key",
        "tags": [
          "secrets"
        ],
        "summary": "Remove a secret (admins only; CLI API keys count as admin).",
        "x-api-key-access": "settings:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/security-policy": {
      "get": {
        "operationId": "get_security_policy",
        "tags": [
          "security-policy"
        ],
        "summary": "Per-workspace auth security policy.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_security_policy",
        "tags": [
          "security-policy"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/ai-resolver": {
      "get": {
        "operationId": "get_settings_ai_resolver",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_settings_ai_resolver",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/embed-domains": {
      "get": {
        "operationId": "get_settings_embed_domains",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_settings_embed_domains",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/invites": {
      "get": {
        "operationId": "get_settings_invites",
        "tags": [
          "settings"
        ],
        "summary": "Invite settings (admins; Settings › Members › Invite member).",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_settings_invites",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/money-fields": {
      "get": {
        "operationId": "get_settings_money_fields",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/money-fields/apply": {
      "post": {
        "operationId": "post_settings_money_fields_apply",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/money-fields/plan": {
      "post": {
        "operationId": "post_settings_money_fields_plan",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/support-email": {
      "get": {
        "operationId": "get_settings_support_email",
        "tags": [
          "settings"
        ],
        "summary": "Support-email identity for ticket-conversation mail.",
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_settings_support_email",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/time-zone": {
      "get": {
        "operationId": "get_settings_time_zone",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_settings_time_zone",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/verify": {
      "get": {
        "operationId": "get_settings_verify",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_settings_verify",
        "tags": [
          "settings"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/settings/webhook": {
      "get": {
        "operationId": "get_settings_webhook",
        "tags": [
          "settings"
        ],
        "summary": "Reveal the current signing secret.",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_settings_webhook",
        "tags": [
          "settings"
        ],
        "summary": "Rotate the signing secret.",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/sites/action": {
      "post": {
        "operationId": "post_sites_action",
        "tags": [
          "sites"
        ],
        "summary": "Perform an App Site action-button as the signed-in principal (the write path).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/sites/intake": {
      "post": {
        "operationId": "post_sites_intake",
        "tags": [
          "sites"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/skills": {
      "get": {
        "operationId": "get_skills",
        "tags": [
          "skills"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/skills/register": {
      "post": {
        "operationId": "post_skills_register",
        "tags": [
          "skills"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec": {
      "get": {
        "operationId": "get_spec",
        "tags": [
          "spec"
        ],
        "summary": "Every artefact in the spec store (effective layer, customised?, conflicts).",
        "x-api-key-access": "spec:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/{address}": {
      "get": {
        "operationId": "get_spec_address",
        "tags": [
          "spec"
        ],
        "x-api-key-access": "spec:read",
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/apply": {
      "post": {
        "operationId": "post_spec_apply",
        "tags": [
          "spec"
        ],
        "x-api-key-access": "spec:apply",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:apply"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/catalog": {
      "get": {
        "operationId": "get_spec_catalog",
        "tags": [
          "spec"
        ],
        "x-api-key-access": "spec:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/conflicts": {
      "get": {
        "operationId": "get_spec_conflicts",
        "tags": [
          "spec"
        ],
        "summary": "Values an upgrade re-base kept from the workspace's customisation (to review).",
        "x-api-key-access": "spec:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_spec_conflicts",
        "tags": [
          "spec"
        ],
        "summary": "Mark them reviewed (the custom values stay).",
        "x-api-key-access": "spec:apply",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:apply"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/plan": {
      "post": {
        "operationId": "post_spec_plan",
        "tags": [
          "spec"
        ],
        "x-api-key-access": "spec:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/policy": {
      "get": {
        "operationId": "get_spec_policy",
        "tags": [
          "spec"
        ],
        "x-api-key-access": "spec:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_spec_policy",
        "tags": [
          "spec"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/schema/{type}": {
      "get": {
        "operationId": "get_spec_schema_type",
        "tags": [
          "spec"
        ],
        "summary": "The JSON Schema of one artefact type (the JSON tab, the CLI and MCP use it).",
        "x-api-key-access": "spec:read",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/spec/validate": {
      "post": {
        "operationId": "post_spec_validate",
        "tags": [
          "spec"
        ],
        "x-api-key-access": "spec:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "spec:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/sso/providers": {
      "get": {
        "operationId": "get_sso_providers",
        "tags": [
          "sso"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_sso_providers",
        "tags": [
          "sso"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_sso_providers",
        "tags": [
          "sso"
        ],
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/store": {
      "get": {
        "operationId": "get_store",
        "tags": [
          "store"
        ],
        "summary": "The app catalog with this workspace's subscription status.",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/store/{appKey}/subscribe": {
      "post": {
        "operationId": "post_store_appKey_subscribe",
        "tags": [
          "store"
        ],
        "x-api-key-access": "apps:install",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/store/{appKey}/unsubscribe": {
      "post": {
        "operationId": "post_store_appKey_unsubscribe",
        "tags": [
          "store"
        ],
        "summary": "Cancel + disable an app (owner/admin).",
        "x-api-key-access": "apps:install",
        "parameters": [
          {
            "name": "appKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:install"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/store/publish": {
      "post": {
        "operationId": "post_store_publish",
        "tags": [
          "store"
        ],
        "summary": "Re-sync the store catalog from code manifests (owner/admin).",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/store/settings": {
      "get": {
        "operationId": "get_store_settings",
        "tags": [
          "store"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_store_settings",
        "tags": [
          "store"
        ],
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/templates": {
      "get": {
        "operationId": "get_templates",
        "tags": [
          "templates"
        ],
        "summary": "Active templates for the macro/insert pickers.",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/templates/{id}/render": {
      "post": {
        "operationId": "post_templates_id_render",
        "tags": [
          "templates"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/tunnels": {
      "get": {
        "operationId": "get_tunnels",
        "tags": [
          "tunnels"
        ],
        "summary": "List tunnels with live status (session or API key).",
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_tunnels",
        "tags": [
          "tunnels"
        ],
        "summary": "Create a tunnel (admins; CLI API keys count as admin).",
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/tunnels/{id}": {
      "delete": {
        "operationId": "delete_tunnels_id",
        "tags": [
          "tunnels"
        ],
        "summary": "Remove a tunnel (admins).",
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/verify/{id}/sync": {
      "post": {
        "operationId": "post_verify_id_sync",
        "tags": [
          "verify"
        ],
        "summary": "Pull the case's current status from the provider and apply it (manual reconcile / \"Refresh from provider\").",
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/webhooks/attest": {
      "post": {
        "operationId": "post_webhooks_attest",
        "tags": [
          "webhooks"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/webhooks/didit": {
      "post": {
        "operationId": "post_webhooks_didit",
        "tags": [
          "webhooks"
        ],
        "summary": "Public Didit webhook receiver.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/webhooks/stripe": {
      "post": {
        "operationId": "post_webhooks_stripe",
        "tags": [
          "webhooks"
        ],
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/webhooks/sumsub": {
      "post": {
        "operationId": "post_webhooks_sumsub",
        "tags": [
          "webhooks"
        ],
        "summary": "Public Sumsub webhook receiver.",
        "x-api-key-access": "public",
        "parameters": [],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/widgets": {
      "get": {
        "operationId": "get_widgets",
        "tags": [
          "widgets"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "post": {
        "operationId": "post_widgets",
        "tags": [
          "widgets"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/widgets/{key}": {
      "get": {
        "operationId": "get_widgets_key",
        "tags": [
          "widgets"
        ],
        "x-api-key-access": "apps:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "put": {
        "operationId": "put_widgets_key",
        "tags": [
          "widgets"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      },
      "delete": {
        "operationId": "delete_widgets_key",
        "tags": [
          "widgets"
        ],
        "x-api-key-access": "apps:write",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "apps:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/widgets/{key}/render": {
      "post": {
        "operationId": "post_widgets_key_render",
        "tags": [
          "widgets"
        ],
        "summary": "Render payload for a widget — the def + its data.",
        "x-api-key-access": "records:read",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "records:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/widgets/action": {
      "post": {
        "operationId": "post_widgets_action",
        "tags": [
          "widgets"
        ],
        "summary": "The WRITE channel for widgets.",
        "x-api-key-access": "records:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "records:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows": {
      "get": {
        "operationId": "get_workflows",
        "tags": [
          "workflows"
        ],
        "x-api-key-access": "workflows:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows/register": {
      "post": {
        "operationId": "post_workflows_register",
        "tags": [
          "workflows"
        ],
        "x-api-key-access": "workflows:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows/runs": {
      "get": {
        "operationId": "get_workflows_runs",
        "tags": [
          "workflows"
        ],
        "x-api-key-access": "workflows:read",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows/runs/{runId}": {
      "get": {
        "operationId": "get_workflows_runs_runId",
        "tags": [
          "workflows"
        ],
        "x-api-key-access": "workflows:read",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:read"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows/runs/{runId}/cancel": {
      "post": {
        "operationId": "post_workflows_runs_runId_cancel",
        "tags": [
          "workflows"
        ],
        "x-api-key-access": "workflows:run",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:run"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows/runs/{runId}/replay": {
      "post": {
        "operationId": "post_workflows_runs_runId_replay",
        "tags": [
          "workflows"
        ],
        "summary": "Re-enqueue a terminal (failed/cancelled) run with its original input as a NEW run (dead-letter replay).",
        "x-api-key-access": "workflows:run",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "apiKey": [
              "workflows:run"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows/runs/{runId}/state": {
      "get": {
        "operationId": "get_workflows_runs_runId_state",
        "tags": [
          "workflows"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workflows/trigger": {
      "post": {
        "operationId": "post_workflows_trigger",
        "tags": [
          "workflows"
        ],
        "x-api-key-access": "workflows:run",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "workflows:run"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workspace/{id}/parent": {
      "patch": {
        "operationId": "patch_workspace_id_parent",
        "tags": [
          "workspace"
        ],
        "x-api-key-access": "session",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workspace/subsidiaries": {
      "post": {
        "operationId": "post_workspace_subsidiaries",
        "tags": [
          "workspace"
        ],
        "summary": "Create a child workspace under the active one (admin only).",
        "x-api-key-access": "settings:write",
        "parameters": [],
        "security": [
          {
            "apiKey": [
              "settings:write"
            ]
          },
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/workspace/switch": {
      "post": {
        "operationId": "post_workspace_switch",
        "tags": [
          "workspace"
        ],
        "summary": "Set the active workspace cookie (reachability-checked).",
        "x-api-key-access": "session",
        "parameters": [],
        "security": [
          {
            "session": []
          }
        ],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/x/asset-ack/{token}": {
      "post": {
        "operationId": "post_x_asset_ack_token",
        "tags": [
          "x"
        ],
        "summary": "Someone without a login confirms they received their kit through the link IT sent them.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/x/esign/{token}": {
      "post": {
        "operationId": "post_x_esign_token",
        "tags": [
          "x"
        ],
        "summary": "Someone signs through the link we emailed them.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/x/esign/{token}/document/{docId}": {
      "get": {
        "operationId": "get_x_esign_token_document_docId",
        "tags": [
          "x"
        ],
        "summary": "A document to sign; needs the link's signing session (x-esign-session).",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "docId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/x/onboard/{token}": {
      "post": {
        "operationId": "post_x_onboard_token",
        "tags": [
          "x"
        ],
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/x/sign/{token}": {
      "post": {
        "operationId": "post_x_sign_token",
        "tags": [
          "x"
        ],
        "summary": "An external signer signs through their link.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    },
    "/api/x/sign/{token}/document": {
      "get": {
        "operationId": "get_x_sign_token_document",
        "tags": [
          "x"
        ],
        "summary": "The document to read, for a valid (unused, unexpired) external signing link.",
        "x-api-key-access": "public",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [],
        "responses": {
          "default": {
            "description": "JSON. Errors: see /developers/errors/."
          }
        }
      }
    }
  }
}
