{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "ValoSend API",
    "version": "0.5.0",
    "description": "Send transactional email from verified domains and track delivery with the ValoSend API. A successful submission means ValoSend queued the request. Use its message ID or signed webhooks to follow delivery. Use the API origin for your workspace. Additional channels and endpoints depend on your workspace setup."
  },
  "servers": [
    {
      "url": "/",
      "description": "Configured API origin"
    }
  ],
  "paths": {
    "/v1/console/context": {
      "get": {
        "operationId": "getConsoleContext",
        "tags": [
          "Console"
        ],
        "description": "Session workspace context: active memberships, selectable scopes, configured capabilities and the MFA requirement. No scope parameters; membership itself is the authority.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsoleContext"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/workspaces": {
      "get": {
        "operationId": "listWorkspaces",
        "tags": [
          "Console"
        ],
        "description": "List up to 100 active workspace memberships for the console session. A workspace-bound SAML session can only see its own workspace. Workspaces that require a higher MFA assurance level appear as locked descriptors. Enroll a new customer workspace with POST /v1/manage/customers.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/organizations/{organization_id}/settings": {
      "get": {
        "operationId": "getWorkspaceSettings",
        "tags": [
          "Console"
        ],
        "description": "Read settings for an active workspace membership at the required assurance level.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceSettings"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/organizations/{organization_id}/settings/organization": {
      "patch": {
        "operationId": "updateWorkspaceOrganization",
        "tags": [
          "Console"
        ],
        "description": "Update organization settings with the current configuration version. Only an owner at AAL2 may change the MFA requirement.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceOrganizationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceOrganizationResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/sso/start": {
      "post": {
        "operationId": "startWorkspaceSso",
        "tags": [
          "Console"
        ],
        "description": "Resolve the active SAML provider for the exact workspace identifier. The console uses this provider ID to start Supabase PKCE.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceSsoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceSsoProvider"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/sso/verify": {
      "post": {
        "operationId": "verifyWorkspaceSso",
        "tags": [
          "Console"
        ],
        "description": "Verify the managed SAML session against the selected workspace. Invitation acceptance and workspace MFA remain required where applicable.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceSsoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceSsoVerification"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/organizations/{organization_id}/settings/sso": {
      "get": {
        "operationId": "getWorkspaceSsoStatus",
        "tags": [
          "Console"
        ],
        "description": "Read the current workspace SAML connection status. Requires an active workspace owner and the workspace's required assurance level.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceSsoStatus"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages": {
      "post": {
        "operationId": "sendMessage",
        "tags": [
          "Intake"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Caller-stable logical intent identity. Same exact scoped key/body replays; changed body is 409. Current authority is still checked on replay. Retain this key across every transport retry."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectMessageRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Durably accepted",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptedMessage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listMessages",
        "tags": [
          "Evidence"
        ],
        "description": "Message metadata/summary accept a current purpose-scoped messages:read service grant or a console session with current membership and scope action grant. Logs require the console session. Body access requires separate content:read authority; service reads do not grant costs.",
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Inclusive UTC timestamp. Defaults to now minus 24 hours. Maximum window 31 days."
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Exclusive UTC timestamp, later than from; defaults to now."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "description": "Opaque cursor from the preceding page in the exact same scope/window."
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Metadata substring search over message ID, request ID and purpose; no body/address search."
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/DeliveryStatus"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessagePage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/batch": {
      "post": {
        "operationId": "sendBatch",
        "tags": [
          "Intake"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Caller-stable logical intent identity. Same exact scoped key/body replays; changed body is 409. Current authority is still checked on replay. Retain this key across every transport retry."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchMessageRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Durably accepted",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workflows/trigger": {
      "post": {
        "operationId": "triggerWorkflow",
        "tags": [
          "Intake"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Caller-stable logical intent identity. Same exact scoped key/body replays; changed body is 409. Current authority is still checked on replay. Retain this key across every transport retry."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkflowRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Durably accepted",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/emails": {
      "post": {
        "operationId": "sendEmail",
        "tags": [
          "Intake"
        ],
        "description": "Send a single transactional or Auth email. Use the secret of a sending credential issued for email-address intake as the bearer token. Its scope, sender and purpose apply to this request. Supply text, HTML or both. The recipient can receive an account confirmation before verifying their address. Intake leaves verification and subscription status unchanged.",
        "security": [
          {
            "EmailSendingBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Caller-stable logical intent identity. Same exact scoped key/body replays; changed body is 409. Current authority is still checked on replay. Retain this key across every transport retry."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendEmailRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Durably accepted",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptedMessage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/summary": {
      "get": {
        "operationId": "getSummary",
        "tags": [
          "Evidence"
        ],
        "description": "Message metadata/summary accept a current purpose-scoped messages:read service grant or a console session with current membership and scope action grant. Logs require the console session. Body access requires separate content:read authority; service reads do not grant costs.",
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Inclusive UTC timestamp. Defaults to now minus 24 hours. Maximum window 31 days."
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Exclusive UTC timestamp, later than from; defaults to now."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "description": "Opaque cursor from the preceding page in the exact same scope/window."
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Metadata substring search over message ID, request ID and purpose; no body/address search."
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/DeliveryStatus"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OverviewResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/request-logs": {
      "get": {
        "operationId": "listRequestLogs",
        "tags": [
          "Evidence"
        ],
        "description": "Message metadata/summary accept a current purpose-scoped messages:read service grant or a console session with current membership and scope action grant. Logs require the console session. Body access requires separate content:read authority; service reads do not grant costs.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Inclusive UTC timestamp. Defaults to now minus 24 hours. Maximum window 31 days."
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Exclusive UTC timestamp, later than from; defaults to now."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "description": "Opaque cursor from the preceding page in the exact same scope/window."
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestLogPage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit-logs": {
      "get": {
        "operationId": "listAuditLogs",
        "tags": [
          "Evidence"
        ],
        "description": "Message metadata/summary accept a current purpose-scoped messages:read service grant or a console session with current membership and scope action grant. Logs require the console session. Body access requires separate content:read authority; service reads do not grant costs.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Inclusive UTC timestamp. Defaults to now minus 24 hours. Maximum window 31 days."
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Exclusive UTC timestamp, later than from; defaults to now."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "description": "Opaque cursor from the preceding page in the exact same scope/window."
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditLogPage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{message_id}": {
      "get": {
        "operationId": "getMessage",
        "tags": [
          "Evidence"
        ],
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageInspector"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{message_id}/content": {
      "get": {
        "operationId": "getMessageContent",
        "tags": [
          "Evidence"
        ],
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTab"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{message_id}/timeline": {
      "get": {
        "operationId": "getMessageTimeline",
        "tags": [
          "Evidence"
        ],
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineTab"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{message_id}/request": {
      "get": {
        "operationId": "getMessageRequest",
        "tags": [
          "Evidence"
        ],
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTab"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/{message_id}/cost": {
      "get": {
        "operationId": "getMessageCost",
        "tags": [
          "Evidence"
        ],
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CostTab"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/messages/export": {
      "get": {
        "operationId": "exportMessages",
        "tags": [
          "Evidence"
        ],
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "description": "Exports one bounded page of metadata under current console or service message-read authority. Spreadsheet formula cells are neutralized. Continue using X-Next-Cursor; no message body or recipient address is exported.",
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Inclusive UTC timestamp. Defaults to now minus 24 hours. Maximum window 31 days."
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Exclusive UTC timestamp, later than from; defaults to now."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 512
            },
            "description": "Opaque cursor from the preceding page in the exact same scope/window."
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Metadata substring search over message ID, request ID and purpose; no body/address search."
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/DeliveryStatus"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Metadata CSV page",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              },
              "X-Next-Cursor": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Data-As-Of": {
                "schema": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            },
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/app-events/{event_id}": {
      "get": {
        "operationId": "getAppEvent",
        "tags": [
          "Evidence"
        ],
        "description": "Requires configured application eventing. Metadata only; event delivery is distinct from recipient delivery and app business completion. Bound agent credentials may access only their operation events with a current events:read or events:replay grant; replay authorization and mutation are atomic.",
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppEventMetadata"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/app-events/{event_id}/replay": {
      "post": {
        "operationId": "replayAppEvent",
        "tags": [
          "Evidence"
        ],
        "description": "Requires current credential.manage console authority. Redelivers the same signed logical application event under a new delivery generation; never resends the recipient message or authorizes a business action. The receiver must durably deduplicate event_id. Same scoped key/event replays the prior generation; changed event under the same key conflicts. Bound agent credentials may access only their operation events with a current events:read or events:replay grant; replay authorization and mutation are atomic.",
        "security": [
          {
            "ConsoleBearer": []
          },
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$",
              "minLength": 1,
              "maxLength": 128
            },
            "description": "Caller-stable logical intent identity. Same exact scoped key/body replays; changed body is 409. Current authority is still checked on replay. Retain this key across every transport retry."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Durably accepted",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppEventReplay"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains": {
      "get": {
        "operationId": "listEmailDomains",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createEmailDomain",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Attaches a named sending domain. Pending, verified and paused domains each occupy one workspace slot across applications, environments and brands. Removing a domain releases its slot once dependencies allow removal.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "The workspace has used its sending domain allowance (sending_domain_limit_reached), or the domain name already exists (idempotency_conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEmailDomain"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}": {
      "get": {
        "operationId": "getEmailDomain",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/providers": {
      "get": {
        "operationId": "listEmailProviders",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailProviderPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/senders": {
      "get": {
        "operationId": "listEmailSenders",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSenderPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/operations": {
      "get": {
        "operationId": "getEmailOperations",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailOperations"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/setup-receipts": {
      "get": {
        "operationId": "listEmailSetupReceipts",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupReceiptPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "recordEmailSetupReceipt",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupReceiptResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetupReceiptRequest"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/suppressions": {
      "get": {
        "operationId": "listEmailSuppressions",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSuppressionPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/templates": {
      "get": {
        "operationId": "listEmailTemplates",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplatePage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "publishEmailTemplate",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplatePublished"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplatePublishRequest"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inbound": {
      "get": {
        "operationId": "listInboundEmail",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inbound/{inbound_id}": {
      "get": {
        "operationId": "getInboundEmail",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbound_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/integrations": {
      "get": {
        "operationId": "listEmailIntegrations",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailIntegrationCatalog"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/provision": {
      "post": {
        "operationId": "provisionEmailDomain",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/check": {
      "post": {
        "operationId": "checkEmailDomain",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/settings": {
      "post": {
        "operationId": "updateEmailDomainSettings",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDomainSettings"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/lifecycle": {
      "post": {
        "operationId": "setEmailDomainLifecycle",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDomainLifecycle"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/canary": {
      "post": {
        "operationId": "authorizeEmailCanary",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CanaryGrant"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CanaryGrantRequest"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/test": {
      "post": {
        "operationId": "recordEmailCanaryEvidence",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainTestEvidence"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/senders/{sender_id}": {
      "post": {
        "operationId": "setEmailSenderSettings",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sender_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSenderPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSenderSettings"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/templates/preview": {
      "post": {
        "operationId": "previewEmailTemplate",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplatePreview"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplatePreviewRequest"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inbound/routes": {
      "post": {
        "operationId": "createInboundRoute",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundRouteResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InboundRouteRequest"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listInboundRoutes",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundRoutePage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inbound/{inbound_id}/attachments/{attachment_id}/access": {
      "post": {
        "operationId": "accessInboundAttachment",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbound_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentAccess"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/providers/{connection_id}/refresh": {
      "post": {
        "operationId": "refreshEmailProvider",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailProviderPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshProviderRequest"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/dns": {
      "get": {
        "operationId": "detectEmailDomainDns",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDnsDetection"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/dns-publications": {
      "get": {
        "operationId": "listDomainDnsPublicationRequests",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsPublicationList"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/dns-publication-approval": {
      "post": {
        "operationId": "approveDomainDnsPublication",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsPublicationApproved"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsPublicationApproval"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/dns-connect": {
      "post": {
        "operationId": "connectEmailDomainDns",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDnsConnectResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDnsConnectRequest"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/dns-setup": {
      "post": {
        "operationId": "setupEmailDomainDns",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDnsSetupResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailDnsSetupRequest"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/domains/{domain_id}/dns-disconnect": {
      "post": {
        "operationId": "disconnectEmailDomainDns",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "domain_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDnsDisconnectResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/preferences": {
      "get": {
        "operationId": "getPublicPreferences",
        "tags": [
          "Email baseline"
        ],
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 180
            }
          }
        ],
        "description": "Scanner GET is read-only. A signed opaque capability selects exact brand/purpose/topic; no login or account key is accepted.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPreferences"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "withdrawPublicPreferences",
        "tags": [
          "Email baseline"
        ],
        "security": [],
        "parameters": [],
        "description": "Durable deny-only action. Never grants consent, invokes app business authorization or sends a recipient message.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreferenceWithdrawalResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreferenceWithdrawal"
              }
            }
          }
        }
      }
    },
    "/v1/unsubscribe/{token}": {
      "post": {
        "operationId": "oneClickUnsubscribe",
        "tags": [
          "Email baseline"
        ],
        "security": [],
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 180
            }
          }
        ],
        "description": "RFC8058 machine POST. GET/HEAD are read-only. No login, cookies or redirects; exact topic/purpose withdrawal is durable and idempotent.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreferenceWithdrawalResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "List-Unsubscribe": {
                    "const": "One-Click"
                  }
                },
                "required": [
                  "List-Unsubscribe"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/console/email/smtp-credentials": {
      "get": {
        "operationId": "listSmtpCredentials",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmtpCredentialPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSmtpCredential",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmtpCredentialReveal"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmtpCredentialCreate"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/smtp-credentials/{credential_id}/rotate": {
      "post": {
        "operationId": "rotateSmtpCredential",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "credential_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmtpCredentialReveal"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmtpCredentialRotate"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/smtp-credentials/{credential_id}/revoke": {
      "post": {
        "operationId": "revokeSmtpCredential",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "credential_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmtpCredentialResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inboxes": {
      "get": {
        "operationId": "listManagedInboxes",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,512}$"
            },
            "description": "Opaque next_cursor from this collection in the same scope."
          }
        ],
        "description": "List active and disabled inboxes in the exact console scope, newest first. Requires current metadata read authority.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedInboxPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createManagedInbox",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Create a named inbox and its dedicated route on a verified receiving domain. The service selects the configured SES account. Requires current credential management authority. The same scoped key and original fields replay the existing inbox, including its current status, without consuming another inbox entitlement.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedInboxCreated"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "The organization has reached its active inbox quota (inbox_limit_reached), the receiving domain is not ready (receiving_domain_not_ready), the address is reserved (inbound_address_unavailable), or the same scoped key was used with different fields (idempotency_conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateManagedInbox"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inboxes/{inbox_id}": {
      "get": {
        "operationId": "getManagedInbox",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Read a named inbox in the exact console scope with current metadata read authority.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedInboxResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inboxes/{inbox_id}/disable": {
      "post": {
        "operationId": "disableManagedInbox",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Pause receiving for this inbox and release its active quota unit. Repeat calls return the disabled inbox. The inbox keeps its address reservation. Historical messages remain available under current grants and retention. Requires current credential management authority.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedInboxDisabled"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inboxes/{inbox_id}/messages": {
      "get": {
        "operationId": "listManagedInboxMessages",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,512}$"
            },
            "description": "Opaque next_cursor from this collection in the same scope."
          }
        ],
        "description": "List received messages tied to this inbox route in the exact console scope, newest first. Requires current metadata read authority. Sender and subject also require current content read authority and retained content.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedInboxMessagePage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inboxes/{inbox_id}/messages/{message_id}": {
      "get": {
        "operationId": "getManagedInboxMessage",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Read a received message tied to this inbox route. Requires current metadata read authority. Message content requires current content read authority and remains subject to retention.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedInboxMessageResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inboxes/{inbox_id}/messages/{message_id}/attachments/{attachment_id}/access": {
      "post": {
        "operationId": "accessManagedInboxAttachment",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Issue a private 60-second HTTPS URL for a retained attachment with a clean scan on a received message belonging to this inbox. Requires current credential management and content read authority.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentAccess"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inboxes/{inbox_id}/messages/{message_id}/attachments/{attachment_id}/retry": {
      "post": {
        "operationId": "retryManagedInboxAttachmentScan",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbox_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Return an eligible retained failed scan to quarantine for a new attempt. Requires current credential management authority. The queued retry preserves the requirement for a clean scan before release.",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManagedInboxScanRetry"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inbound/{inbound_id}/attachments/{attachment_id}/retry": {
      "post": {
        "operationId": "retryInboundAttachmentScan",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inbound_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentRetryResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/inbound/routes/{route_id}/pause": {
      "post": {
        "operationId": "pauseInboundRoute",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundRoutePaused"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmptyBody"
              }
            }
          }
        }
      }
    },
    "/v1/console/email/senders/{sender_id}/reply-route": {
      "post": {
        "operationId": "bindSenderReplyRoute",
        "tags": [
          "Email baseline"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sender_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "",
        "responses": {
          "200": {
            "description": "Current scoped evidence or durable mutation receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReplyRouteBindingResult"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "description": "Stable safe error; no secrets or dependency messages.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplyRouteBindingRequest"
              }
            }
          }
        }
      }
    },
    "/v1/agent/capabilities": {
      "get": {
        "operationId": "agentCapabilities",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCapabilities"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/agent/prepare": {
      "post": {
        "operationId": "prepareAgentAction",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreparedAgentAction"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrepareAgentAction"
              }
            }
          }
        }
      }
    },
    "/v1/agent/operations/lookup": {
      "get": {
        "operationId": "lookupAgentOperation",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "task_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          },
          {
            "name": "action_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/agent/operations/{operation_id}": {
      "get": {
        "operationId": "getAgentOperation",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/agent/operations/{operation_id}/execute": {
      "post": {
        "operationId": "executeAgentAction",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "fingerprint": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "scope",
                  "fingerprint"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/agent/operations/{operation_id}/cancel": {
      "post": {
        "operationId": "cancelAgentOperation",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCancellation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/agent/events": {
      "get": {
        "operationId": "listAgentEvents",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "grant_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEvents"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/agent-responses/{response_id}": {
      "get": {
        "operationId": "viewAgentResponse",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResponseView"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "submitAgentResponse",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResponseRecorded"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "answer": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  }
                },
                "required": [
                  "answer"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents": {
      "get": {
        "operationId": "manageAgents",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "consent_profile",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "operations",
                "runtime",
                "email-operations",
                "email-runtime"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createAgent",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentAdminResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/grants": {
      "post": {
        "operationId": "createAgentGrant",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentAdminResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentGrant"
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/bindings": {
      "post": {
        "operationId": "bindAgentCredential",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentAdminResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "principal_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "credential_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "principal_id",
                  "credential_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/principals/{id}/revoke": {
      "post": {
        "operationId": "revokeAgentPrincipals",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentAdminResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/grants/{id}/revoke": {
      "post": {
        "operationId": "revokeAgentGrants",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentAdminResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/tasks/pause": {
      "post": {
        "operationId": "pauseAgentTask",
        "tags": [
          "Agent foundations"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bounded operation evidence; delivery and business authorization are distinct.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentAdminResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "principal_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "task_id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "paused": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "principal_id",
                  "task_id",
                  "paused"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient-sessions": {
      "post": {
        "operationId": "createRecipientSession",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientSession"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipientSessionRequest"
              }
            }
          }
        }
      }
    },
    "/v1/recipient-sessions/logout": {
      "post": {
        "operationId": "logoutRecipient",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientLogout"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "recipient_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "installation_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "scope",
                  "recipient_id",
                  "installation_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient-endpoints/transfer": {
      "post": {
        "operationId": "transferRecipientEndpoint",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientEndpointTransferred"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipientEndpointTransfer"
              }
            }
          }
        }
      }
    },
    "/v1/recipient-preferences/confirm": {
      "post": {
        "operationId": "confirmRecipientPreference",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientPreferenceConfirmed"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipientPreferenceConfirmation"
              }
            }
          }
        }
      }
    },
    "/v1/recipient/push-device-tests/{proof_id}/pair": {
      "post": {
        "operationId": "pairSandboxPushDevice",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "proof_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxPushDevicePairing"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {
                    "const": true
                  },
                  "endpoint_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "confirm",
                  "endpoint_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-device-tests/{proof_id}/approve": {
      "post": {
        "operationId": "approveSandboxPushDevice",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "proof_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxPushDeviceApproval"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "project_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "recipient_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "installation_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "endpoint_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "pairing_code": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{43}$"
                  }
                },
                "required": [
                  "scope",
                  "project_id",
                  "recipient_id",
                  "installation_id",
                  "endpoint_id",
                  "pairing_code"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient/push-device-tests/{proof_id}/run": {
      "post": {
        "operationId": "runSandboxPushDeviceTest",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "proof_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxPushDeviceProof"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirm": {
                    "const": true
                  }
                },
                "required": [
                  "confirm"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient/push-device-tests/{proof_id}/ack": {
      "post": {
        "operationId": "acknowledgeSandboxPushDeviceTest",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "proof_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxPushDeviceProof"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "nonce": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{43}$"
                  }
                },
                "required": [
                  "nonce"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient/endpoints": {
      "post": {
        "operationId": "registerPushEndpoint",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterPushEndpoint"
              }
            }
          }
        }
      }
    },
    "/v1/recipient/endpoints/{endpoint_id}/revoke": {
      "post": {
        "operationId": "revokePushEndpoint",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushEndpointRevoked"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient/logout": {
      "post": {
        "operationId": "recipientLogout",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientLogout"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient/feed": {
      "get": {
        "operationId": "getRecipientFeed",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "unread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientFeed"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/recipient/feed/{message_id}": {
      "get": {
        "operationId": "getRecipientFeedItem",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientFeedItemResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/recipient/feed/{message_id}/read": {
      "post": {
        "operationId": "readRecipientFeedItem",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientFeedRead"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/recipient/messages/{message_id}/ack": {
      "post": {
        "operationId": "acknowledgePush",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "message_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushAcknowledged"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PushAcknowledgement"
              }
            }
          }
        }
      }
    },
    "/v1/recipient/projects/{project_id}": {
      "get": {
        "operationId": "getRecipientProject",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientProject"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/recipient/preferences": {
      "get": {
        "operationId": "getRecipientPreferences",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientPreferences"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "changeRecipientPreference",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "RecipientBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientPreferenceResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipientPreferenceInput"
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects": {
      "get": {
        "operationId": "listPushProjects",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushProjects"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createPushProject",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushProjectSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PushProjectInput"
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects/{project_id}/check-credentials": {
      "post": {
        "operationId": "checkPushCredentials",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushCredentialCheck"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects/{project_id}/challenge": {
      "post": {
        "operationId": "issuePushOriginChallenge",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushProjectSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "scope",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects/{project_id}/status": {
      "post": {
        "operationId": "setPushProjectStatus",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushProjectSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "disabled"
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "scope",
                  "status",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects/{project_id}/rotate": {
      "post": {
        "operationId": "rotatePushProjectCredentials",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushProjectSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "credential_reference": {
                    "type": "string"
                  },
                  "credential_version": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "vapid_public_key": {
                    "type": "string"
                  }
                },
                "required": [
                  "scope",
                  "credential_reference",
                  "credential_version",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects/{project_id}/verify-origin": {
      "post": {
        "operationId": "verifyPushOrigin",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushOriginVerified"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects/{project_id}/endpoints": {
      "get": {
        "operationId": "listProjectPushEndpoints",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushEndpointInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/push-projects/{project_id}/endpoints/{endpoint_id}/revoke": {
      "post": {
        "operationId": "disableProjectPushEndpoint",
        "tags": [
          "Push and recipient components"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Durable scoped evidence; no inferred display or business completion.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushEndpointRevoked"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/sms/routes": {
      "get": {
        "operationId": "listSmsRoutes",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSmsRoute",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsRouteSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "provider_connection_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "identity": {
                    "type": "string"
                  },
                  "region": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "purpose": {
                    "type": "string"
                  },
                  "message_type": {
                    "type": "string"
                  },
                  "origination_identity": {
                    "type": "string"
                  },
                  "configuration_set": {
                    "type": "string"
                  },
                  "protect_configuration_id": {
                    "type": "string"
                  },
                  "opt_out_list": {
                    "type": "string"
                  },
                  "feedback_topic_arn": {
                    "type": "string"
                  },
                  "destination_prefixes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "stop_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "help_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "canary_destinations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "inbound_topic_arn": {
                    "type": "string"
                  },
                  "opt_out_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "two_way": {
                    "type": "boolean"
                  },
                  "require_device": {
                    "type": "boolean"
                  },
                  "max_segments": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "daily_cap_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "limits": {
                    "type": "object",
                    "properties": {
                      "key_per_minute": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "recipient_per_hour": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "device_per_hour": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "country_per_minute": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "key_per_minute",
                      "recipient_per_hour",
                      "device_per_hour",
                      "country_per_minute"
                    ],
                    "additionalProperties": false
                  },
                  "profile": {
                    "type": "object",
                    "properties": {
                      "gsm_single": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "gsm_multi": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unicode_single": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unicode_multi": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "gsm_single",
                      "gsm_multi",
                      "unicode_single",
                      "unicode_multi"
                    ],
                    "additionalProperties": false
                  },
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "provider_connection_id",
                  "identity",
                  "region",
                  "country",
                  "purpose",
                  "message_type",
                  "origination_identity",
                  "configuration_set",
                  "protect_configuration_id",
                  "opt_out_list",
                  "feedback_topic_arn",
                  "destination_prefixes",
                  "stop_keywords",
                  "help_keywords",
                  "canary_destinations",
                  "two_way",
                  "require_device",
                  "max_segments",
                  "daily_cap_microunits",
                  "limits",
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/sms/quote": {
      "post": {
        "operationId": "quoteSms",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsQuoteResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "sender_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "recipient_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "endpoint_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "purpose": {
                    "type": "string"
                  },
                  "content": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/SmsContent"
                      },
                      {
                        "$ref": "#/components/schemas/TemplateContent"
                      }
                    ]
                  }
                },
                "required": [
                  "scope",
                  "sender_id",
                  "recipient_id",
                  "purpose",
                  "content"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/sms/templates": {
      "post": {
        "operationId": "publishSmsTemplate",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsTemplateSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "key": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1500
                  }
                },
                "required": [
                  "scope",
                  "key",
                  "body"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/sms/routes/{route_id}/verify": {
      "post": {
        "operationId": "verifySmsProvider",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsRouteVerified"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "scope",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/sms/routes/{route_id}/rates": {
      "post": {
        "operationId": "recordSmsRate",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsRateSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "encoding": {
                    "type": "string",
                    "enum": [
                      "GSM-7",
                      "UCS-2"
                    ]
                  },
                  "unit_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "valid_until": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "reference": {
                    "type": "string"
                  },
                  "event_price_unit": {
                    "type": "string",
                    "enum": [
                      "usd",
                      "milli_cent"
                    ]
                  },
                  "carrier_fee_unit": {
                    "type": "string",
                    "enum": [
                      "usd",
                      "milli_cent"
                    ]
                  },
                  "carrier_fee_mode": {
                    "type": "string",
                    "enum": [
                      "included",
                      "additional"
                    ]
                  }
                },
                "required": [
                  "scope",
                  "version",
                  "encoding",
                  "unit_microunits",
                  "valid_until",
                  "reference",
                  "event_price_unit",
                  "carrier_fee_unit",
                  "carrier_fee_mode"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/sms/routes/{route_id}/status": {
      "post": {
        "operationId": "setSmsRouteStatus",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsRouteSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "paused",
                      "disabled"
                    ]
                  },
                  "reference": {
                    "type": "string"
                  },
                  "carrier_reference": {
                    "type": "string"
                  },
                  "opt_out_reference": {
                    "type": "string"
                  },
                  "pumping_reference": {
                    "type": "string"
                  },
                  "alert_reference": {
                    "type": "string"
                  }
                },
                "required": [
                  "scope",
                  "version",
                  "status",
                  "reference"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/sms/routes/{route_id}/evidence": {
      "get": {
        "operationId": "readSmsEvidence",
        "tags": [
          "SMS"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped SMS configuration or measured evidence. Live activation requires independent provider and carrier qualification.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmsEvidence"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/routes": {
      "get": {
        "operationId": "listWhatsAppRoutes",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createWhatsAppRoute",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppRouteSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "provider_connection_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "waba_id": {
                    "type": "string",
                    "pattern": "^[0-9]{5,32}$"
                  },
                  "phone_number_id": {
                    "type": "string",
                    "pattern": "^[0-9]{5,32}$"
                  },
                  "business_id": {
                    "type": "string",
                    "pattern": "^[0-9]{5,32}$"
                  },
                  "identity": {
                    "type": "string",
                    "pattern": "^\\+[1-9][0-9]{6,14}$"
                  },
                  "graph_version": {
                    "type": "string",
                    "pattern": "^v[0-9]{1,2}\\.0$"
                  },
                  "ownership": {
                    "type": "string",
                    "enum": [
                      "internal",
                      "customer_test",
                      "customer"
                    ]
                  },
                  "canary_destinations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "maxItems": 5
                  },
                  "purposes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "maxItems": 20
                  },
                  "daily_cap_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "scope",
                  "provider_connection_id",
                  "waba_id",
                  "phone_number_id",
                  "business_id",
                  "identity",
                  "graph_version",
                  "ownership",
                  "canary_destinations",
                  "purposes",
                  "daily_cap_microunits"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/quote": {
      "post": {
        "operationId": "quoteWhatsApp",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppQuoteResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "sender_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "recipient_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "endpoint_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "purpose": {
                    "type": "string"
                  },
                  "content": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/WhatsAppContent"
                      },
                      {
                        "$ref": "#/components/schemas/TemplateContent"
                      }
                    ]
                  }
                },
                "required": [
                  "scope",
                  "sender_id",
                  "recipient_id",
                  "purpose",
                  "content"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/routes/{route_id}/verify": {
      "post": {
        "operationId": "verifyWhatsAppRoute",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppRouteVerified"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "scope",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/routes/{route_id}/templates/sync": {
      "post": {
        "operationId": "syncWhatsAppTemplates",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppTemplatesSynced"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "scope",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/routes/{route_id}/rates": {
      "post": {
        "operationId": "recordWhatsAppRate",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppRateSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "country": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "SERVICE",
                      "UTILITY",
                      "MARKETING",
                      "AUTHENTICATION"
                    ]
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "unit_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "valid_until": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "required": [
                  "scope",
                  "version",
                  "country",
                  "category",
                  "currency",
                  "unit_microunits",
                  "valid_until",
                  "reference"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/routes/{route_id}/usage": {
      "post": {
        "operationId": "recordWhatsAppInvoiceCharge",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppChargeRecorded"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "intent_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "attempt_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "provider_message_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "country": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "SERVICE",
                      "UTILITY",
                      "MARKETING",
                      "AUTHENTICATION"
                    ]
                  },
                  "currency": {
                    "const": "USD"
                  },
                  "amount_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "source_reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "evidence_reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  }
                },
                "required": [
                  "scope",
                  "intent_id",
                  "attempt_id",
                  "provider_message_id",
                  "country",
                  "category",
                  "currency",
                  "amount_microunits",
                  "source_reference",
                  "evidence_reference"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/routes/{route_id}/status": {
      "post": {
        "operationId": "setWhatsAppRouteStatus",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppRouteSaved"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "paused",
                      "disabled"
                    ]
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "required": [
                  "scope",
                  "version",
                  "status",
                  "reference"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/routes/{route_id}/evidence": {
      "get": {
        "operationId": "readWhatsAppEvidence",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppEvidence"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/signup/start": {
      "post": {
        "operationId": "startWhatsAppSignup",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppSignupStarted"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "provider_connection_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "ownership": {
                    "type": "string",
                    "enum": [
                      "customer_test",
                      "customer"
                    ]
                  },
                  "canary_destinations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "minItems": 1,
                    "maxItems": 5
                  },
                  "daily_cap_microunits": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "scope",
                  "provider_connection_id",
                  "ownership",
                  "canary_destinations",
                  "daily_cap_microunits"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/signup/callback": {
      "post": {
        "operationId": "completeWhatsAppSignup",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppSignupCompleted"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "session_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "state": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "waba_id": {
                    "type": "string",
                    "pattern": "^[0-9]{5,32}$"
                  },
                  "phone_number_id": {
                    "type": "string",
                    "pattern": "^[0-9]{5,32}$"
                  },
                  "business_id": {
                    "type": "string",
                    "pattern": "^[0-9]{5,32}$"
                  },
                  "pin": {
                    "type": "string",
                    "pattern": "^[0-9]{6}$"
                  },
                  "coexistence": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "scope",
                  "session_id",
                  "state",
                  "code",
                  "waba_id",
                  "phone_number_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/installations/{installation_id}/disconnect": {
      "post": {
        "operationId": "disconnectWhatsAppBusiness",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "installation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppDisconnected"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reference": {
                    "type": "string"
                  }
                },
                "required": [
                  "scope",
                  "version",
                  "reference"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/whatsapp/media/{media_id}/download": {
      "get": {
        "operationId": "downloadWhatsAppMedia",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppMediaDownload"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/whatsapp/media/{media_id}/download": {
      "get": {
        "operationId": "downloadWhatsAppMediaForApp",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped provider setup or evidence; current approvals and live qualification remain required.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppMediaDownload"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/callbacks/meta-whatsapp/{provider_account_id}": {
      "get": {
        "operationId": "verifyWhatsAppCallback",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "MetaWebhookVerifyToken": []
          }
        ],
        "parameters": [
          {
            "name": "provider_account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "hub.mode",
            "in": "query",
            "required": true,
            "schema": {
              "const": "subscribe"
            }
          },
          {
            "name": "hub.challenge",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verified Meta callback challenge, plain text.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{1,128}$"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "receiveWhatsAppCallback",
        "tags": [
          "WhatsApp"
        ],
        "security": [
          {
            "MetaWebhookSignature": []
          }
        ],
        "parameters": [
          {
            "name": "provider_account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "object": {
                    "const": "whatsapp_business_account"
                  },
                  "entry": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "maxItems": 1000
                  }
                },
                "required": [
                  "object",
                  "entry"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified raw event persisted and processed; this is not a recipient-send receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WhatsAppIngressReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workflow-runs": {
      "post": {
        "operationId": "startWorkflowRun",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationWorkflowRun"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartWorkflowRun"
              }
            }
          }
        }
      }
    },
    "/v1/workflow-runs/{run_id}": {
      "get": {
        "operationId": "getWorkflowRun",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationWorkflowRun"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/workflow-runs/{run_id}/cancel": {
      "post": {
        "operationId": "cancelWorkflowRun",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationWorkflowRun"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/workflow-runs/{run_id}/app-state": {
      "post": {
        "operationId": "updateWorkflowRunState",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationWorkflowRun"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "state": {
                    "type": "object",
                    "maxProperties": 20,
                    "propertyNames": {
                      "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                    },
                    "additionalProperties": {
                      "type": [
                        "string",
                        "boolean"
                      ],
                      "maxLength": 256
                    }
                  }
                },
                "required": [
                  "scope",
                  "revision",
                  "state"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/organizations/{organization_id}/version-catalog": {
      "get": {
        "operationId": "getVersionCatalog",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionCatalog"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "description": "Read published template and workflow versions and sender identities for a single authorized application, environment and brand. Each list returns at most 200 items. The truncated flag indicates that one or more lists had additional entries."
      }
    },
    "/v1/manage/workflows": {
      "get": {
        "operationId": "listWorkflowGraphs",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "workflow_key",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "workflows_cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "versions_cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "drafts_cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "runs_cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/versions/{record_id}": {
      "get": {
        "operationId": "getWorkflowGraphVersionsRecord",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphVersionDetail"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/drafts/{record_id}": {
      "get": {
        "operationId": "getWorkflowGraphDraftsRecord",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphDraftDetail"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/runs/{record_id}": {
      "get": {
        "operationId": "getWorkflowGraphRunsRecord",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphRunDetail"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/draft": {
      "post": {
        "operationId": "createWorkflowGraphDraft",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphDraft"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "workflow_key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "definition": {
                    "$ref": "#/components/schemas/CoordinationWorkflowGraph"
                  }
                },
                "required": [
                  "workflow_key",
                  "definition"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/rollback": {
      "post": {
        "operationId": "rollbackWorkflowGraph",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphDraft"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "workflow_version_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "workflow_version_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/disable": {
      "post": {
        "operationId": "setWorkflowGraphDisabled",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphControl"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "workflow_key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "disabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "workflow_key",
                  "disabled"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/simulate": {
      "post": {
        "operationId": "simulateWorkflowGraph",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationWorkflowSimulationResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "definition": {
                    "$ref": "#/components/schemas/CoordinationWorkflowGraph"
                  },
                  "variables": {
                    "$ref": "#/components/schemas/Variables"
                  },
                  "app_state": {
                    "type": "object",
                    "maxProperties": 20,
                    "propertyNames": {
                      "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                    },
                    "additionalProperties": {
                      "type": [
                        "string",
                        "boolean"
                      ],
                      "maxLength": 256
                    }
                  },
                  "context": {
                    "$ref": "#/components/schemas/CoordinationWorkflowSimulationContext"
                  }
                },
                "required": [
                  "definition",
                  "variables",
                  "app_state"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/{draft_id}/review": {
      "post": {
        "operationId": "reviewWorkflowGraph",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphReview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fingerprint": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "fingerprint"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/workflows/{draft_id}/publish": {
      "post": {
        "operationId": "publishWorkflowGraph",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowGraphPublished"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fingerprint": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "fingerprint"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates": {
      "get": {
        "operationId": "listTemplateVariants",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "variant_cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "draft_cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationTemplateCatalogResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/media": {
      "get": {
        "operationId": "listTemplateMedia",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationMediaCatalog"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "registerTemplateMedia",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationMediaAssetResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://"
                  },
                  "alt": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "content_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "source_reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "scope",
                  "url",
                  "alt",
                  "content_sha256",
                  "source_reference",
                  "expires_at"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/media/{asset_id}": {
      "patch": {
        "operationId": "revokeTemplateMedia",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationMediaRevocation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "revoked": {
                    "const": true
                  }
                },
                "required": [
                  "scope",
                  "revoked"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/drafts": {
      "post": {
        "operationId": "createLocalizedTemplateDraft",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationTemplateDraftResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "locale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 35,
                    "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "push",
                      "sms",
                      "whatsapp"
                    ]
                  },
                  "definition": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "variables": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
                    },
                    "maxItems": 64,
                    "uniqueItems": true
                  },
                  "media": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "url": {
                          "type": "string",
                          "format": "uri",
                          "pattern": "^https://"
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 512
                        }
                      },
                      "required": [
                        "reference_id",
                        "url",
                        "alt"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 16
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "key",
                  "locale",
                  "channel",
                  "definition",
                  "variables",
                  "media"
                ],
                "additionalProperties": false,
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "channel": {
                          "const": "email"
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "definition": {
                          "type": "object",
                          "properties": {
                            "subject": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            },
                            "html": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            }
                          },
                          "required": [
                            "subject",
                            "text"
                          ],
                          "additionalProperties": false
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "channel": {
                          "const": "push"
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "definition": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            },
                            "body": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            },
                            "url": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            }
                          },
                          "required": [
                            "title",
                            "body"
                          ],
                          "additionalProperties": false
                        },
                        "media": {
                          "maxItems": 0
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "channel": {
                          "const": "sms"
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "definition": {
                          "type": "object",
                          "properties": {
                            "body": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            }
                          },
                          "required": [
                            "body"
                          ],
                          "additionalProperties": false
                        },
                        "media": {
                          "maxItems": 0
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "channel": {
                          "const": "whatsapp"
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "definition": {
                          "type": "object",
                          "properties": {
                            "body": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 131072
                            }
                          },
                          "required": [
                            "body"
                          ],
                          "additionalProperties": false
                        },
                        "media": {
                          "maxItems": 0
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/drafts/{draft_id}": {
      "get": {
        "operationId": "getTemplateDraft",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationTemplateDraftResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/drafts/{draft_id}/review": {
      "get": {
        "operationId": "inspectEmailTemplateDraftReview",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateDraftReview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "reviewLocalizedTemplate",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationTemplateVariantResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "template_version_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "content_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/drafts/{draft_id}/preview": {
      "post": {
        "operationId": "previewEmailTemplateDraft",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "draft_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateDraftPreview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "variables": {
                    "$ref": "#/components/schemas/Variables"
                  }
                },
                "required": [
                  "scope",
                  "variables"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/versions": {
      "get": {
        "operationId": "listEmailTemplateVersions",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 1024
            }
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateVersions"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/versions/{template_version_id}": {
      "get": {
        "operationId": "getEmailTemplateVersion",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "template_version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateVersionResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/versions/{template_version_id}/preview": {
      "post": {
        "operationId": "previewEmailTemplateVersion",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "template_version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateVersionPreview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "variables": {
                    "$ref": "#/components/schemas/Variables"
                  }
                },
                "required": [
                  "scope",
                  "variables"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/versions/{template_version_id}/duplicate": {
      "post": {
        "operationId": "duplicateEmailTemplateVersion",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "template_version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationTemplateDraftResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "locale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 35,
                    "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "key",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/versions/{template_version_id}/archive": {
      "post": {
        "operationId": "archiveEmailTemplateVersion",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "template_version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateVersionArchive"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/preview": {
      "post": {
        "operationId": "previewLocalizedTemplate",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationTemplatePreview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "locale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 35,
                    "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "push",
                      "sms",
                      "whatsapp"
                    ]
                  },
                  "variables": {
                    "$ref": "#/components/schemas/Variables"
                  },
                  "template_version_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "scope",
                  "key",
                  "locale",
                  "channel",
                  "variables"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/ai-draft": {
      "post": {
        "operationId": "generateLocalizedTemplateDraft",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationAiDraft"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "draft_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "protected_facts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "maxItems": 64
                  }
                },
                "required": [
                  "scope",
                  "draft_id",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/investigations": {
      "post": {
        "operationId": "investigate",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationInvestigationResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "delivery",
                      "setup",
                      "cost"
                    ]
                  },
                  "reference_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "scope",
                  "kind",
                  "reference_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/investigations/draft": {
      "post": {
        "operationId": "draftInvestigation",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationAiDraft"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "delivery",
                      "setup",
                      "cost"
                    ]
                  },
                  "reference_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "kind",
                  "reference_id",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/investigations/drafts": {
      "get": {
        "operationId": "listInvestigationDrafts",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationAiDraftInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/catalog": {
      "get": {
        "operationId": "listBrandedEmailCatalog",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "auth",
                "lifecycle",
                "billing",
                "workflow",
                "support",
                "scheduling",
                "operational",
                "marketing"
              ]
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "const": "email"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandedEmailCatalog"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/catalog/preview": {
      "post": {
        "operationId": "previewBrandedEmail",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandedEmailPreview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "variant": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "theme": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "locale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 35,
                    "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
                  },
                  "expected_catalog_release": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "expected_brand_revision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "variables": {
                    "$ref": "#/components/schemas/Variables"
                  }
                },
                "required": [
                  "scope",
                  "key",
                  "variant"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/catalog/install": {
      "post": {
        "operationId": "installBrandedEmailDraft",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandedEmailInstall"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "variant": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "theme": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "locale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 35,
                    "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
                  },
                  "expected_catalog_release": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "expected_brand_revision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
                  },
                  "upgrade_from_draft_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "scope",
                  "key",
                  "variant",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/catalog/installs": {
      "get": {
        "operationId": "listBrandedEmailInstalls",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandedEmailInstalls"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/catalog/brand-profile": {
      "get": {
        "operationId": "getEmailBrandProfile",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBrandProfileResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updateEmailBrandProfile",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBrandProfileResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "expected_revision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "profile": {
                    "type": "object",
                    "properties": {
                      "product_url": {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://",
                        "maxLength": 1024
                      },
                      "preferences_url": {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://",
                        "maxLength": 1024
                      },
                      "privacy_url": {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://",
                        "maxLength": 1024
                      },
                      "terms_url": {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://",
                        "maxLength": 1024
                      },
                      "logo_light_url": {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://",
                        "maxLength": 1024
                      },
                      "logo_dark_url": {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://",
                        "maxLength": 1024
                      },
                      "logo_icon_url": {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://",
                        "maxLength": 1024
                      },
                      "primary_color": {
                        "type": "string",
                        "pattern": "^#[0-9A-Fa-f]{6}$"
                      },
                      "accent_color": {
                        "type": "string",
                        "pattern": "^#[0-9A-Fa-f]{6}$"
                      },
                      "background_color": {
                        "type": "string",
                        "pattern": "^#[0-9A-Fa-f]{6}$"
                      },
                      "text_color": {
                        "type": "string",
                        "pattern": "^#[0-9A-Fa-f]{6}$"
                      },
                      "legal_name": {
                        "type": "string",
                        "maxLength": 180
                      },
                      "postal_address": {
                        "type": "string",
                        "maxLength": 600
                      },
                      "support_email": {
                        "type": "string",
                        "format": "email"
                      },
                      "reply_to_email": {
                        "type": "string",
                        "format": "email"
                      },
                      "heading_font": {
                        "type": "string",
                        "enum": [
                          "serif",
                          "book",
                          "sans",
                          "human",
                          "geometric",
                          "mono"
                        ]
                      },
                      "body_font": {
                        "type": "string",
                        "enum": [
                          "serif",
                          "book",
                          "sans",
                          "human",
                          "geometric",
                          "mono"
                        ]
                      },
                      "theme": {
                        "type": "string",
                        "enum": [
                          "editorial",
                          "saas",
                          "ledger",
                          "mono",
                          "commerce",
                          "ops"
                        ]
                      },
                      "locale": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 35,
                        "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
                      },
                      "direction": {
                        "type": "string",
                        "enum": [
                          "ltr",
                          "rtl"
                        ]
                      },
                      "social_links": {
                        "type": "object",
                        "properties": {
                          "linkedin": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 1024
                          },
                          "instagram": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 1024
                          },
                          "mastodon": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 1024
                          },
                          "youtube": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 1024
                          },
                          "github": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 1024
                          },
                          "facebook": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 1024
                          },
                          "bluesky": {
                            "type": "string",
                            "format": "uri",
                            "pattern": "^https://",
                            "maxLength": 1024
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      },
                      "category_themes": {
                        "type": "object",
                        "properties": {
                          "auth": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          },
                          "lifecycle": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          },
                          "billing": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          },
                          "workflow": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          },
                          "support": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          },
                          "scheduling": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          },
                          "operational": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          },
                          "marketing": {
                            "type": "string",
                            "enum": [
                              "editorial",
                              "saas",
                              "ledger",
                              "mono",
                              "commerce",
                              "ops"
                            ]
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "scope",
                  "expected_revision",
                  "profile"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/templates/catalog/brand-logo": {
      "post": {
        "operationId": "uploadBrandLogo",
        "tags": [
          "Coordination"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current scoped coordination evidence. No provider delivery or business authorization is implied.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandLogoUpload"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "content_type": {
                    "const": "image/png"
                  },
                  "content_base64": {
                    "type": "string",
                    "maxLength": 218456,
                    "contentEncoding": "base64"
                  },
                  "alt": {
                    "type": "string",
                    "maxLength": 512
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "scope",
                  "content_type",
                  "content_base64",
                  "alt",
                  "expires_at"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/health": {
      "get": {
        "operationId": "getCoordinationHealth",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationHealth"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/incidents": {
      "get": {
        "operationId": "listCoordinationIncidents",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationIncidents"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCoordinationIncident",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationIncidentResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "severity": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ]
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "push",
                      "sms",
                      "whatsapp"
                    ]
                  },
                  "sender_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "paused": {
                    "type": "boolean"
                  },
                  "answerridge_case_reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "title",
                  "severity",
                  "paused"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/notifications": {
      "get": {
        "operationId": "listCoordinationNotifications",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationNotifications"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/notifications/{notification_id}/read": {
      "post": {
        "operationId": "readCoordinationNotification",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "notification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationNotificationRead"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/cases": {
      "get": {
        "operationId": "listCoordinationCases",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationCases"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/cases/{case_id}/retry": {
      "post": {
        "operationId": "retryCoordinationCase",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationCaseRetry"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/incidents/{incident_id}": {
      "patch": {
        "operationId": "updateCoordinationIncident",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "incident_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationIncidentResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "open",
                      "investigating",
                      "resolved"
                    ]
                  },
                  "paused": {
                    "type": "boolean"
                  },
                  "answerridge_case_reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "expected_version",
                  "status",
                  "paused"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/destinations": {
      "get": {
        "operationId": "listCoordinationDestinations",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationDestinations"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "saveCoordinationDestination",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationDestinationResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "external_webhook",
                      "independent_pager",
                      "answerridge_case"
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "disabled"
                    ]
                  }
                },
                "required": [
                  "scope",
                  "kind",
                  "reference",
                  "status"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/support-grants": {
      "post": {
        "operationId": "grantCoordinationSupport",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationSupportGrant"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "user_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "intent_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "scope",
                  "user_id",
                  "intent_id",
                  "reason",
                  "expires_at"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/support-grants/{grant_id}/revoke": {
      "post": {
        "operationId": "revokeCoordinationSupport",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "grant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationSupportRevocation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/support-context": {
      "post": {
        "operationId": "getCoordinationSupportContext",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationSupportContext"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "intent_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "grant_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "scope",
                  "intent_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/reconcile": {
      "post": {
        "operationId": "reconcileCoordinationEvidence",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationReconciliation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "intent_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "scope",
                  "intent_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/usage": {
      "get": {
        "operationId": "getCoordinationUsage",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationUsage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/usage/export": {
      "get": {
        "operationId": "exportCoordinationUsage",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationUsageExport"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/coordination/usage/invoice-preview": {
      "get": {
        "operationId": "getCoordinationInvoicePreview",
        "tags": [
          "Operations and usage"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current scoped operational evidence. No resend is performed.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoordinationInvoicePreview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/push-projects/{project_id}/origin-challenge": {
      "get": {
        "operationId": "readPublishedPushOriginChallenge",
        "tags": [
          "Push"
        ],
        "security": [],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-ValoSend-Site-Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current public proof for the installed site handler.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{43}$"
                }
              }
            }
          },
          "404": {
            "description": "Proof unavailable for this project and origin.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "const": ""
                }
              }
            }
          }
        }
      }
    },
    "/v1/agent-workflows/preview": {
      "post": {
        "operationId": "previewAgentWorkflow",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowPreview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrepareAgentWorkflow"
              }
            }
          }
        }
      }
    },
    "/v1/agent-workflows/{preparation_id}": {
      "get": {
        "operationId": "getAgentWorkflow",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "preparation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/agent-workflows/{preparation_id}/execute": {
      "post": {
        "operationId": "executeAgentWorkflow",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "preparation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "fingerprint": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "scope",
                  "fingerprint"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/agent-workflows/{preparation_id}/cancel": {
      "post": {
        "operationId": "cancelAgentWorkflow",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "preparation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/agent-workflows/{preparation_id}/app-state": {
      "post": {
        "operationId": "updateAgentWorkflowState",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [
          {
            "name": "preparation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentWorkflowOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "state": {
                    "type": "object",
                    "maxProperties": 20,
                    "propertyNames": {
                      "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                    },
                    "additionalProperties": {
                      "type": [
                        "string",
                        "boolean"
                      ],
                      "maxLength": 256
                    }
                  }
                },
                "required": [
                  "scope",
                  "revision",
                  "state"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/oauth/authorize": {
      "post": {
        "operationId": "authorizeDelegatedAgent",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for approval. Omit for denial."
          },
          {
            "name": "application_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for approval. Omit for denial."
          },
          {
            "name": "environment",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            },
            "description": "Required for approval. Omit for denial."
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for approval. Omit for denial."
          }
        ],
        "responses": {
          "201": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AgentOAuthAuthorization"
                    },
                    {
                      "$ref": "#/components/schemas/AgentOAuthManagementAuthorization"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "Declined without granting authority.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthDenial"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AgentOAuthAuthorizationRequest"
                  },
                  {
                    "$ref": "#/components/schemas/AgentOAuthCreateReadGrantRequest"
                  },
                  {
                    "$ref": "#/components/schemas/AgentOAuthManagementRequest"
                  },
                  {
                    "$ref": "#/components/schemas/AgentOAuthDenialRequest"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/remote": {
      "get": {
        "operationId": "listRemoteAgentConnections",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRemoteInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/remote/revoke": {
      "post": {
        "operationId": "revokeRemoteAgentConnection",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRemoteRevocation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "credential_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "credential_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/remote/management": {
      "get": {
        "operationId": "listWorkspaceAgentConnections",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentManagementInventory"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "revokeWorkspaceAgentConnection",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentManagementRevocation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "connection_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "connection_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/organizations/{organization_id}/agent-proposals": {
      "get": {
        "operationId": "listWorkspaceChangeProposals",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "disabled_environments"
              ]
            },
            "description": "List disabled environment bindings eligible for this owner to recover."
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Use the next offset from the disabled environment view."
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceChangeReviewList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/organizations/{organization_id}/agent-proposals/{proposal_id}/decision": {
      "post": {
        "operationId": "reviewWorkspaceChangeProposal",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "proposal_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceChangeDecision"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "decision": {
                    "type": "string",
                    "enum": [
                      "accept",
                      "reject"
                    ]
                  }
                },
                "required": [
                  "decision"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/agents/remote/playground": {
      "post": {
        "operationId": "previewRemoteAgentPlayground",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRemotePlayground"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "grant_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "tool": {
                    "type": "string",
                    "enum": [
                      "valosend_get_capabilities",
                      "valosend_preview",
                      "valosend_diagnose"
                    ]
                  },
                  "arguments": {
                    "type": "object"
                  }
                },
                "required": [
                  "grant_id",
                  "tool",
                  "arguments"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/.well-known/oauth-authorization-server": {
      "get": {
        "operationId": "getAgentAuthorizationServer",
        "tags": [
          "Delegated agents"
        ],
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthAuthorizationServer"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/oauth-protected-resource": {
      "get": {
        "operationId": "getAgentProtectedResource",
        "tags": [
          "Delegated agents"
        ],
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthProtectedResource"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/oauth-protected-resource/mcp": {
      "get": {
        "operationId": "getAgentMcpProtectedResource",
        "tags": [
          "Delegated agents"
        ],
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthProtectedResource"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          }
        }
      }
    },
    "/oauth/token": {
      "post": {
        "operationId": "exchangeDelegatedAgentAuthorization",
        "tags": [
          "Delegated agents"
        ],
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AgentOAuthToken"
                    },
                    {
                      "$ref": "#/components/schemas/AgentOAuthManagementToken"
                    },
                    {
                      "$ref": "#/components/schemas/AgentOAuthRenewableManagementToken"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/AgentOAuthTokenRequest"
                  },
                  {
                    "$ref": "#/components/schemas/AgentOAuthManagementRefreshRequest"
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/oauth/revoke": {
      "post": {
        "operationId": "revokeDelegatedAgentToken",
        "tags": [
          "Delegated agents"
        ],
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "const": ""
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "token_type_hint": {
                    "type": "string"
                  }
                },
                "required": [
                  "token",
                  "client_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/oauth/authorize": {
      "get": {
        "operationId": "beginDelegatedAgentAuthorization",
        "tags": [
          "Delegated agents"
        ],
        "security": [],
        "parameters": [
          {
            "name": "client_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          },
          {
            "name": "redirect_uri",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "response_type",
            "in": "query",
            "required": true,
            "schema": {
              "const": "code"
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$"
            }
          },
          {
            "name": "code_challenge_method",
            "in": "query",
            "required": true,
            "schema": {
              "const": "S256"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\x00-\\x1f\\x7f]+$"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "valosend:operations",
                    "valosend:runtime",
                    "valosend:operations valosend:runtime",
                    "valosend:runtime valosend:operations"
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "valosend:management",
                    "valosend:management offline_access",
                    "offline_access valosend:management"
                  ]
                }
              ]
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "const": ""
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOAuthError"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "callRemoteAgentMcp",
        "tags": [
          "Delegated agents"
        ],
        "security": [
          {
            "DelegatedAgentBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Scoped agent/OAuth protocol response.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              }
            }
          },
          "202": {
            "description": "Initialized notification accepted without response body.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "const": ""
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpRequest"
              }
            }
          }
        }
      }
    },
    "/v1/public/site": {
      "get": {
        "operationId": "getPublicSiteConfiguration",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSiteResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/plans": {
      "get": {
        "operationId": "listCustomerPricingPlans",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPricingResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers": {
      "post": {
        "operationId": "enrollCustomer",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEnrollment"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "200": {
            "description": "Default workspace check completed. Existing memberships and invitations take precedence.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "request_id": {
                      "type": "string"
                    },
                    "created": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "request_id",
                    "created"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CustomerEnrollmentRequest"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "default_workspace": {
                        "const": true
                      }
                    },
                    "required": [
                      "default_workspace"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/onboarding": {
      "get": {
        "operationId": "getCustomerOnboarding",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerOnboarding"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/providers": {
      "get": {
        "operationId": "listCustomerProviders",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProviderList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "connectCustomerProvider",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProviderConnected"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerProviderConnectRequest"
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/providers/{connection_id}/credentials": {
      "post": {
        "operationId": "rotateCustomerProviderCredentials",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProviderRotated"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "credential": {
                    "$ref": "#/components/schemas/CustomerProviderCredential"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                },
                "required": [
                  "scope",
                  "credential",
                  "expected_version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/providers/{connection_id}/verify": {
      "post": {
        "operationId": "verifyCustomerProvider",
        "tags": [
          "Independent customers"
        ],
        "description": "Checks current customer authority and provider readiness. For Resend connections with a Full access API key and no signing keys saved, sets up signed feedback by creating or reusing the exact account callback webhook and storing its signing secret. Verification evidence excludes credential material.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProviderVerified"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/providers/{connection_id}/disconnect": {
      "post": {
        "operationId": "disconnectCustomerProvider",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerProviderDisconnected"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                },
                "required": [
                  "scope",
                  "expected_version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/senders": {
      "post": {
        "operationId": "createCustomerSender",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSenderResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "domain_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "address": {
                    "type": "string",
                    "format": "email"
                  }
                },
                "required": [
                  "scope",
                  "domain_id",
                  "address"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/first-test/{test_id}/mailbox": {
      "get": {
        "operationId": "getCustomerFirstTestMailboxEvidence",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "test_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnerTestMailboxEvidence"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/first-test": {
      "post": {
        "operationId": "sendCustomerFirstTest",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerFirstTest"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "sender_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "sender_id",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/event-destinations": {
      "get": {
        "operationId": "listCustomerEventDestinations",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEventDestinationList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCustomerEventDestination",
        "tags": [
          "Independent customers"
        ],
        "description": "Exact customer scope; validated HTTPS public destination. The signing key is encrypted server-side and revealed once. Retrying the same operation cannot reveal it again.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEventKeyDisclosure"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "url",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/event-destinations/{endpoint_id}/activate": {
      "post": {
        "operationId": "activateCustomerEventDestination",
        "tags": [
          "Independent customers"
        ],
        "description": "Review an agent-staged receiver in the customer console. Current MFA and the reviewed version are required. The HTTPS receiver is revalidated and the signing key is revealed once.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEventKeyDisclosure"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "expected_version",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/event-destinations/{endpoint_id}/rotate": {
      "post": {
        "operationId": "rotateCustomerEventSigningKey",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEventKeyDisclosure"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "overlap_seconds": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400
                  }
                },
                "required": [
                  "scope",
                  "expected_version",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customers/{organization_id}/event-destinations/{endpoint_id}/disable": {
      "post": {
        "operationId": "disableCustomerEventDestination",
        "tags": [
          "Independent customers"
        ],
        "description": "Revokes customer destination signing authority without replaying recipient messages or discarding original event evidence.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEventDestinationResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                },
                "required": [
                  "scope",
                  "expected_version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/state": {
      "get": {
        "operationId": "getCustomerBillingState",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingState"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/comp": {
      "get": {
        "operationId": "getCustomerBillingComp",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified billing operator using an unbound session. Reads current customer tier, comp grant and configuration version.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingOperatorAccount"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "grantCustomerBillingComp",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified billing operator using an unbound session. Grants complimentary sending authority and graduates the tier as needed. Set mark_internal only for a verified first-party customer.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingOperatorAccount"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "reason_code": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "tier": {
                    "type": "string",
                    "enum": [
                      "pilot",
                      "commercial"
                    ]
                  },
                  "mark_internal": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "organization_id",
                  "expected_version",
                  "reason_code",
                  "tier"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/comp/revoke": {
      "post": {
        "operationId": "revokeCustomerBillingComp",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified billing operator using an unbound session. Withdraws complimentary authority. Stripe subscription evidence and tier are preserved.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingOperatorAccount"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "reason_code": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  }
                },
                "required": [
                  "organization_id",
                  "expected_version",
                  "reason_code"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/graduate": {
      "post": {
        "operationId": "graduateCustomerTier",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified billing operator using an unbound session. Advances the customer tier while preserving the existing billing authority and quotas.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingOperatorAccount"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "reason_code": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "tier": {
                    "type": "string",
                    "enum": [
                      "pilot",
                      "commercial"
                    ]
                  }
                },
                "required": [
                  "organization_id",
                  "expected_version",
                  "reason_code",
                  "tier"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/spend-controls": {
      "get": {
        "operationId": "getCustomerHandoffSpendControls",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerHandoffSpendControls"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "setCustomerHandoffSpendControls",
        "tags": [
          "Independent customers"
        ],
        "description": "Workspace owner or admin sets the accepted-handoff overage ceiling before tax. The expected version prevents stale changes. In-flight handoffs count against remaining capacity until their outcome is known.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerHandoffSpendControls"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "overage_enabled": {
                    "type": "boolean"
                  },
                  "overage_limit_minor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "organization_id",
                  "overage_enabled",
                  "overage_limit_minor",
                  "expected_version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/invoices": {
      "get": {
        "operationId": "listCustomerInvoices",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerInvoiceList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/usage": {
      "get": {
        "operationId": "getCustomerUsage",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerUsage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/usage/export": {
      "get": {
        "operationId": "exportCustomerUsage",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerUsageExport"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/checkout": {
      "post": {
        "operationId": "createCustomerCheckout",
        "tags": [
          "Independent customers"
        ],
        "description": "Create a checkout for a reviewed plan version or resume the current provider session using the pending operation ID in workspace billing state.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCheckout"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "organization_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "idempotency_key": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                      },
                      "plan_id": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_-]{1,39}$"
                      },
                      "plan_version": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100000
                      }
                    },
                    "required": [
                      "organization_id",
                      "idempotency_key",
                      "plan_id",
                      "plan_version"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "organization_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "operation_id": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "required": [
                      "organization_id",
                      "operation_id"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/portal": {
      "post": {
        "operationId": "createCustomerBillingPortal",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingPortal"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "organization_id",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/cancel": {
      "post": {
        "operationId": "cancelCustomerSubscription",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingCancel"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "organization_id",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/addons": {
      "post": {
        "operationId": "changeCustomerBillingAddon",
        "tags": [
          "Independent customers"
        ],
        "description": "Workspace owner or admin sets the total recurring quantity. Zero removes the item immediately without a prorated credit. Increases require verified payment and can return a Stripe-hosted invoice. Dedicated IP and SSO provisioning are separate.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingAddonChange"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "organization_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "idempotency_key": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                      },
                      "addon": {
                        "const": "domain_pack"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      }
                    },
                    "required": [
                      "organization_id",
                      "idempotency_key",
                      "addon",
                      "quantity"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "organization_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "idempotency_key": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                      },
                      "addon": {
                        "const": "extra_inbox"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      }
                    },
                    "required": [
                      "organization_id",
                      "idempotency_key",
                      "addon",
                      "quantity"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "organization_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "idempotency_key": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                      },
                      "addon": {
                        "const": "dedicated_ip"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "organization_id",
                      "idempotency_key",
                      "addon",
                      "quantity"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "organization_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "idempotency_key": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                      },
                      "addon": {
                        "const": "sso"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "organization_id",
                      "idempotency_key",
                      "addon",
                      "quantity"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/settle-period": {
      "post": {
        "operationId": "settleCustomerBillingPeriod",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified billing operator only; immutable unique period/meter identity prevents duplicate overage invoice lines. Customer transport is excluded.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPeriodSettlement"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "invoice_id": {
                    "type": "string",
                    "pattern": "^in_[A-Za-z0-9]+$"
                  },
                  "from": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "to": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "organization_id",
                  "invoice_id",
                  "from",
                  "to"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/credits": {
      "post": {
        "operationId": "creditCustomerInvoice",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified billing operator only; original paid invoice, current authority and immutable reference constrain the adjustment.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCredit"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "invoice_id": {
                    "type": "string",
                    "pattern": "^in_[A-Za-z0-9]+$"
                  },
                  "amount_minor": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000
                  },
                  "reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  }
                },
                "required": [
                  "organization_id",
                  "invoice_id",
                  "amount_minor",
                  "reference",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/pilot": {
      "post": {
        "operationId": "recordCustomerPilotEvidence",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified operator attests unrelated relationship and measured support/platform/model/provider cost. Paid retention is derived independently from verified invoices.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPilotRecorded"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "unrelated_verified": {
                    "type": "boolean"
                  },
                  "evidence_reference": {
                    "type": "string"
                  },
                  "active_effort_minutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "elapsed_setup_minutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "interventions": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "compatibility_reference": {
                    "type": "string"
                  },
                  "revocation_verified": {
                    "type": "boolean"
                  },
                  "observed_from": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "observed_to": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "platform_cost_minor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "support_cost_minor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "model_cost_minor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "provider_cost_minor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  },
                  "relationship_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000
                  }
                },
                "required": [
                  "organization_id",
                  "unrelated_verified",
                  "evidence_reference",
                  "active_effort_minutes",
                  "elapsed_setup_minutes",
                  "interventions",
                  "compatibility_reference",
                  "revocation_verified",
                  "observed_from",
                  "observed_to",
                  "currency",
                  "platform_cost_minor",
                  "support_cost_minor",
                  "model_cost_minor",
                  "provider_cost_minor",
                  "relationship_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getCustomerPilotEvidence",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPilot"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-billing/pilot-report": {
      "get": {
        "operationId": "getCustomerPilotReport",
        "tags": [
          "Independent customers"
        ],
        "description": "Configured MFA-verified operator only. Relationship groups prevent internal/related organizations counting as unrelated design partners; no result automatically enables managed sending.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPilotReport"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/billing/stripe/webhook": {
      "post": {
        "operationId": "receiveCustomerBillingEvent",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "StripeWebhookSignature": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerStripeEventResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^evt_[A-Za-z0-9]{1,180}$"
                  },
                  "type": {
                    "type": "string"
                  },
                  "created": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 253402300799
                  },
                  "livemode": {
                    "type": "boolean"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "object": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "required": [
                      "object"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created",
                  "livemode",
                  "data"
                ],
                "additionalProperties": true,
                "description": "Stripe vendor event envelope. Resource-specific fields are verified by original-provider readback; additional vendor envelope fields are accepted."
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-embeds/installations": {
      "get": {
        "operationId": "listCustomerEmbedInstallations",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedInstallations"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCustomerEmbedInstallation",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedInstallationCreated"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "domain_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "origin": {
                    "type": "string",
                    "format": "uri"
                  },
                  "service_credential_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "allow_provision": {
                    "type": "boolean"
                  },
                  "ttl_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 7
                  }
                },
                "required": [
                  "scope",
                  "domain_id",
                  "origin",
                  "service_credential_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-embeds/installations/{installation_id}/verify": {
      "post": {
        "operationId": "verifyCustomerEmbedOrigin",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "installation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedInstallationResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-embeds/installations/{installation_id}/revoke": {
      "post": {
        "operationId": "revokeCustomerEmbedInstallation",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "installation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedInstallationResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/customer-embed/sessions": {
      "post": {
        "operationId": "issueCustomerSetupSession",
        "tags": [
          "Independent customers"
        ],
        "description": "Host-server only: setup:manage credential with exact installation and scope. Browser Origin is rejected; no organization sending key is returned to an embed.",
        "security": [
          {
            "ServiceBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedSession"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "installation_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "theme": {
                    "type": "string",
                    "enum": [
                      "system",
                      "light",
                      "dark"
                    ]
                  },
                  "locale": {
                    "type": "string",
                    "maxLength": 35
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 900
                  }
                },
                "required": [
                  "scope",
                  "installation_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/customer-embed/setup": {
      "get": {
        "operationId": "getCustomerSetup",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "CustomerSetupSession": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedSetup"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/customer-embed/setup/check": {
      "post": {
        "operationId": "checkCustomerSetup",
        "tags": [
          "Independent customers"
        ],
        "description": "Narrow current origin/domain installation only. Original-provider side-effect uncertainty is held; a changed operation key cannot authorize blind reprovisioning.",
        "security": [
          {
            "CustomerSetupSession": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/customer-embed/setup/provision": {
      "post": {
        "operationId": "provisionCustomerSetup",
        "tags": [
          "Independent customers"
        ],
        "description": "Narrow current origin/domain installation only. Original-provider side-effect uncertainty is held; a changed operation key cannot authorize blind reprovisioning.",
        "security": [
          {
            "CustomerSetupSession": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmbedOperation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/recipients": {
      "get": {
        "operationId": "listCustomerRecipients",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRecipientList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCustomerRecipient",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRecipientResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "external_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "required": [
                  "scope",
                  "external_id"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/recipients/{recipient_id}/endpoints": {
      "post": {
        "operationId": "createCustomerRecipientEndpoint",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "recipient_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRecipientEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "push",
                      "sms",
                      "whatsapp"
                    ]
                  },
                  "address": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "scope",
                  "channel",
                  "address"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/endpoints/{endpoint_id}/verify": {
      "post": {
        "operationId": "verifyCustomerRecipientEndpoint",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRecipientEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "verification_reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  }
                },
                "required": [
                  "scope",
                  "verification_reference"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/endpoints/{endpoint_id}/invalidate": {
      "post": {
        "operationId": "invalidateCustomerRecipientEndpoint",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRecipientEndpoint"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "scope",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/topics": {
      "post": {
        "operationId": "createCustomerPermissionTopic",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPermissionTopicResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "push",
                      "sms",
                      "whatsapp"
                    ]
                  },
                  "purpose": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  "consent_max_age_seconds": {
                    "type": "integer",
                    "minimum": 60,
                    "maximum": 315360000
                  },
                  "recipient_editable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "scope",
                  "key",
                  "label",
                  "channel",
                  "purpose",
                  "consent_max_age_seconds"
                ],
                "additionalProperties": false,
                "if": {
                  "required": [
                    "recipient_editable"
                  ],
                  "properties": {
                    "recipient_editable": {
                      "const": true
                    }
                  }
                },
                "then": {
                  "properties": {
                    "channel": {
                      "enum": [
                        "email",
                        "push"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/topics/{topic_id}": {
      "patch": {
        "operationId": "setCustomerPermissionTopicStatus",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "topic_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPermissionTopicResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "disabled"
                    ]
                  }
                },
                "required": [
                  "scope",
                  "status"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/permissions": {
      "post": {
        "operationId": "recordCustomerPermission",
        "tags": [
          "Independent customers"
        ],
        "description": "Records current recipient authority for a channel purpose; intake still re-checks the recorded decision.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPermissionResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "recipient_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "push",
                      "sms",
                      "whatsapp"
                    ]
                  },
                  "purpose": {
                    "type": "string",
                    "minLength": 1
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "granted",
                      "denied"
                    ]
                  },
                  "source": {
                    "type": "string",
                    "minLength": 1
                  },
                  "evidence_reference": {
                    "type": "string",
                    "minLength": 1
                  },
                  "recorded_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "authority_epoch": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "explicit_opt_in": {
                    "type": "boolean"
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "scope",
                  "recipient_id",
                  "channel",
                  "purpose",
                  "decision",
                  "source",
                  "evidence_reference",
                  "recorded_at",
                  "authority_epoch"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/contacts": {
      "get": {
        "operationId": "listContacts",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createContact",
        "tags": [
          "Independent customers"
        ],
        "description": "Register a contact for a scoped recipient. An optional email is registered through the existing endpoint authority.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "first_name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "properties": {
                    "type": "object",
                    "maxProperties": 50,
                    "propertyNames": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$",
                      "not": {
                        "enum": [
                          "constructor",
                          "prototype"
                        ]
                      }
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "type": "string",
                              "maxLength": 500
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "recipient_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "external_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 320
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key"
                ],
                "additionalProperties": false,
                "oneOf": [
                  {
                    "required": [
                      "recipient_id"
                    ]
                  },
                  {
                    "required": [
                      "external_id"
                    ]
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/manage/contacts/{contact_id}": {
      "get": {
        "operationId": "getContact",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateContact",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "first_name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "properties": {
                    "type": "object",
                    "maxProperties": 50,
                    "propertyNames": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$",
                      "not": {
                        "enum": [
                          "constructor",
                          "prototype"
                        ]
                      }
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "type": "string",
                              "maxLength": 500
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key"
                ],
                "additionalProperties": false,
                "minProperties": 3
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteContact",
        "tags": [
          "Independent customers"
        ],
        "description": "Remove the profile, property overrides and segment memberships. The recipient and consent evidence are retained.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/contact-properties": {
      "get": {
        "operationId": "listContactPropertys",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactPropertyList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createContactProperty",
        "tags": [
          "Independent customers"
        ],
        "description": "Create a reusable resource in the approved application, environment and brand.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$",
                    "not": {
                      "enum": [
                        "constructor",
                        "prototype"
                      ]
                    }
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "string",
                      "number"
                    ]
                  },
                  "fallback": {
                    "anyOf": [
                      {
                        "oneOf": [
                          {
                            "type": "string",
                            "maxLength": 500
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key",
                  "key",
                  "type"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/contact-properties/{property_id}": {
      "get": {
        "operationId": "getContactProperty",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactPropertyResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateContactProperty",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "fallback": {
                    "anyOf": [
                      {
                        "oneOf": [
                          {
                            "type": "string",
                            "maxLength": 500
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key",
                  "fallback"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteContactProperty",
        "tags": [
          "Independent customers"
        ],
        "description": "Remove the property definition and its per-contact overrides.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "property_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/segments": {
      "get": {
        "operationId": "listSegments",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSegment",
        "tags": [
          "Independent customers"
        ],
        "description": "Create a reusable resource in the approved application, environment and brand.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/segments/{segment_id}": {
      "get": {
        "operationId": "getSegment",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "segment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateSegment",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "segment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deleteSegment",
        "tags": [
          "Independent customers"
        ],
        "description": "Remove the segment and its memberships. Contact profiles are retained.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "segment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/contacts/{contact_id}/segments": {
      "get": {
        "operationId": "listContactSegments",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/contacts/{contact_id}/topics": {
      "get": {
        "operationId": "listContactTopics",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactTopicList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/segments/{segment_id}/contacts": {
      "get": {
        "operationId": "listSegmentContacts",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "segment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/contacts/{contact_id}/segments/{segment_id}": {
      "put": {
        "operationId": "addContactToSegment",
        "tags": [
          "Independent customers"
        ],
        "description": "Change reusable segment membership. Endpoint verification and consent are managed through recipient permissions.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "segment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeContactFromSegment",
        "tags": [
          "Independent customers"
        ],
        "description": "Change reusable segment membership. Endpoint verification and consent are managed through recipient permissions.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "segment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactMutationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "scope",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/credentials": {
      "get": {
        "operationId": "listCustomerCredentials",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCredentialList"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCustomerCredential",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCredentialResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "api",
                      "smtp"
                    ]
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "grants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "messages:send",
                            "messages:read",
                            "content:read",
                            "workflows:trigger",
                            "recipients:manage",
                            "setup:manage"
                          ]
                        },
                        "purpose": {
                          "type": "string",
                          "pattern": "^\\*$|^[a-z][a-z0-9_.-]{0,63}$"
                        },
                        "lane": {
                          "type": "string",
                          "enum": [
                            "standard",
                            "bulk",
                            "critical"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "purpose",
                        "lane"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 32
                  }
                },
                "required": [
                  "scope",
                  "name",
                  "kind",
                  "grants"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/credentials/{credential_id}/rotate": {
      "post": {
        "operationId": "rotateCustomerCredential",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "credential_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCredentialResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  },
                  "overlap_seconds": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 86400
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "scope",
                  "overlap_seconds"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/credentials/{credential_id}/revoke": {
      "post": {
        "operationId": "revokeCustomerCredential",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "credential_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCredentialResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scope": {
                    "$ref": "#/components/schemas/LogicalScope"
                  }
                },
                "required": [
                  "scope"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/callbacks/{provider}/{provider_account_id}": {
      "post": {
        "operationId": "receiveProviderCallback",
        "tags": [
          "Independent customers"
        ],
        "description": "Provider-signed feedback endpoint. Native vendor payload is opaque to the gateway; signature and binding are verified server-side before any event projects.",
        "security": [],
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_-]{0,31}$"
            }
          },
          {
            "name": "provider_account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderCallbackResult"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-lifecycle": {
      "get": {
        "operationId": "getCustomerLifecycle",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerLifecycle"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-lifecycle/exports": {
      "post": {
        "operationId": "requestCustomerExport",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "202": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExportRequested"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  }
                },
                "required": [
                  "organization_id",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-lifecycle/exports/{export_id}": {
      "get": {
        "operationId": "getCustomerExportPage",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 999,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExportPage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-lifecycle/exports/{export_id}/acknowledge": {
      "post": {
        "operationId": "acknowledgeCustomerExport",
        "tags": [
          "Independent customers"
        ],
        "description": "Current customer authority and tenant scope are checked by the service. Implementation does not imply live provider qualification.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "export_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExportAcknowledged"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "organization_id",
                  "sha256"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/customer-lifecycle/close": {
      "post": {
        "operationId": "closeCustomerAccount",
        "tags": [
          "Independent customers"
        ],
        "description": "Owner, recent managed AAL2 and acknowledged completed export required. Immediately revokes future customer authority; preserves submitting/uncertain reconciliation evidence. Scheduled erasure requires reviewed retention and external receipts; no backup erasure is invented.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [],
        "responses": {
          "202": {
            "description": "Current evidence or durable operation receipt.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerClosure"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                  },
                  "export_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "confirmation": {
                    "const": "CLOSE"
                  }
                },
                "required": [
                  "organization_id",
                  "idempotency_key",
                  "export_id",
                  "confirmation"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/campaigns": {
      "get": {
        "operationId": "listCampaigns",
        "tags": [
          "Campaigns"
        ],
        "description": "List campaign metadata in the current exact scope.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignPage"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCampaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Create an email marketing draft using explicit recipient IDs or configured segment resolution.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignMutation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "definition": {
                    "$ref": "#/components/schemas/CampaignDefinition"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "required": [
                  "name",
                  "definition",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/campaigns/{campaign_id}": {
      "get": {
        "operationId": "getCampaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Read campaign metadata and its retained definition.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignDetail"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updateCampaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Replace a draft at the expected version and invalidate its prior review.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignMutation"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "definition": {
                    "$ref": "#/components/schemas/CampaignDefinition"
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": [
                  "name",
                  "definition",
                  "expected_version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/campaigns/{campaign_id}/preview": {
      "post": {
        "operationId": "previewCampaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Render the draft and snapshot its audience and optional schedule up to seven days ahead. The review expires within 15 minutes.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignPreview"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "scheduled_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                },
                "required": [
                  "expected_version"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/campaigns/{campaign_id}/launch": {
      "post": {
        "operationId": "launchCampaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Admit only the reviewed audience under current authority. Requires an owner or admin with AAL2. Admission and provider acceptance are distinct from delivery.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Durably accepted",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignLaunch"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "review_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "idempotency_key": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._:-]{1,128}$",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "required": [
                  "review_id",
                  "idempotency_key"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/campaigns/{campaign_id}/cancel": {
      "post": {
        "operationId": "cancelCampaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Cancel the campaign and stop accepted messages that have not begun provider submission. Requires an owner or admin with AAL2.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignEvidence"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/v1/manage/campaigns/{campaign_id}/evidence": {
      "get": {
        "operationId": "getCampaignEvidence",
        "tags": [
          "Campaigns"
        ],
        "description": "Read current recipient admission and delivery evidence, without addresses or message content.",
        "security": [
          {
            "ConsoleBearer": []
          }
        ],
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "application_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "environment",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "sandbox",
                "production"
              ]
            }
          },
          {
            "name": "brand_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scoped evidence",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                },
                "description": "Correlation identifier. Public capabilities keep it in the header."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignEvidence"
                }
              }
            }
          },
          "400": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Rejected or unavailable; inspect stable error code and retryable flag.",
            "headers": {
              "X-Request-Id": {
                "description": "Server-generated correlation identity for this HTTP request.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ServiceBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "ValoSend service credential",
        "description": "Trusted server/Edge only; current service grants are checked at intake/replay and dispatch."
      },
      "ConsoleBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Verified console identity plus current database membership, binding and action grant."
      },
      "EmailSendingBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "ValoSend email sending credential",
        "description": "Server-held secret issued for address-based sending from a verified sender."
      },
      "RecipientBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "vr1 opaque recipient session",
        "description": "Short-lived app-issued session, scoped to a recipient, installation and optionally an exact verified browser origin. It cannot send messages or manage providers."
      },
      "MetaWebhookSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "x-hub-signature-256",
        "description": "HMAC SHA256 over the exact raw request bytes using the bound Meta app secret; sender ownership is checked separately."
      },
      "MetaWebhookVerifyToken": {
        "type": "apiKey",
        "in": "query",
        "name": "hub.verify_token",
        "description": "Account-specific callback challenge token; never a console or sending credential."
      },
      "DelegatedAgentBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Opaque delegated agent token",
        "description": "Exact registered client and MCP resource audience, current server-side grant, operations/runtime or workspace management profile, expiry and revocation."
      },
      "CustomerSetupSession": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Opaque ve1 short-lived origin-bound setup session",
        "description": "Issued only by the host server using setup:manage authority. Cannot send or read other customer resources."
      },
      "StripeWebhookSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "Stripe-Signature",
        "description": "Verified HMAC over untouched original bytes, timestamp and the configured Stripe live/test mode. No session or send key authorizes billing events."
      }
    },
    "schemas": {
      "LogicalScope": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "organization_id",
          "application_id",
          "environment",
          "brand_id"
        ],
        "additionalProperties": false
      },
      "Variables": {
        "type": "object",
        "maxProperties": 64,
        "propertyNames": {
          "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
        },
        "additionalProperties": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8192
        }
      },
      "InlineEmailContent": {
        "type": "object",
        "properties": {
          "kind": {
            "const": "inline"
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 998
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536
          },
          "html": {
            "type": "string",
            "minLength": 1,
            "maxLength": 131072
          }
        },
        "required": [
          "kind",
          "subject",
          "text"
        ],
        "additionalProperties": false
      },
      "SendEmailRequest": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "email",
            "description": "Verified sender address bound to the credential."
          },
          "to": {
            "type": "string",
            "format": "email",
            "description": "One recipient email address."
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 998
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536
          },
          "html": {
            "type": "string",
            "minLength": 1,
            "maxLength": 131072
          }
        },
        "required": [
          "from",
          "to",
          "subject"
        ],
        "additionalProperties": false,
        "anyOf": [
          {
            "required": [
              "text"
            ]
          },
          {
            "required": [
              "html"
            ]
          }
        ]
      },
      "WhatsAppContent": {
        "type": "object",
        "properties": {
          "kind": {
            "const": "inline"
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "required": [
          "kind",
          "body"
        ],
        "additionalProperties": false
      },
      "SmsContent": {
        "type": "object",
        "properties": {
          "kind": {
            "const": "inline"
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1600
          },
          "device_reference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.:-]{16,128}$"
          }
        },
        "required": [
          "kind",
          "body"
        ],
        "additionalProperties": false
      },
      "PushContent": {
        "type": "object",
        "properties": {
          "kind": {
            "const": "inline"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2419200
          },
          "collapse_key": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "public"
            ]
          }
        },
        "required": [
          "kind",
          "title",
          "body"
        ],
        "additionalProperties": false
      },
      "TemplateContent": {
        "type": "object",
        "properties": {
          "kind": {
            "const": "template"
          },
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "variables": {
            "$ref": "#/components/schemas/Variables"
          }
        },
        "required": [
          "kind",
          "template_version_id",
          "variables"
        ],
        "additionalProperties": false
      },
      "DirectMessageRequest": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "purpose": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "topic_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InlineEmailContent"
              },
              {
                "$ref": "#/components/schemas/PushContent"
              },
              {
                "$ref": "#/components/schemas/SmsContent"
              },
              {
                "$ref": "#/components/schemas/WhatsAppContent"
              },
              {
                "$ref": "#/components/schemas/TemplateContent"
              }
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time"
          },
          "max_cost_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "scope",
          "recipient_id",
          "channel",
          "purpose",
          "sender_id",
          "content"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "whatsapp"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WhatsAppContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "sms"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SmsContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "email"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InlineEmailContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "push"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PushContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          }
        ],
        "description": "Immutable direct message intake; no workflow is required. Content is bounded to 192 KiB canonical UTF-8 JSON; the full HTTP body is at most 256 KiB. Current scope, recipient, purpose, sender, credential and budget authority apply."
      },
      "BatchMessageRequest": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "purpose": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "topic_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InlineEmailContent"
              },
              {
                "$ref": "#/components/schemas/PushContent"
              },
              {
                "$ref": "#/components/schemas/SmsContent"
              },
              {
                "$ref": "#/components/schemas/WhatsAppContent"
              },
              {
                "$ref": "#/components/schemas/TemplateContent"
              }
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time"
          },
          "max_cost_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "recipient_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "endpoint_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "client_reference": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9._:-]{1,128}$",
                  "minLength": 1,
                  "maxLength": 128
                }
              },
              "required": [
                "recipient_id",
                "client_reference"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 100,
            "description": "Each client_reference is unique within this batch and provides a stable child identity. Per-recipient failures do not erase accepted siblings."
          }
        },
        "required": [
          "scope",
          "channel",
          "purpose",
          "sender_id",
          "content",
          "recipients"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "whatsapp"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WhatsAppContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "sms"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SmsContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "email"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InlineEmailContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "push"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PushContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          }
        ]
      },
      "WorkflowRequest": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "variables": {
            "$ref": "#/components/schemas/Variables"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "max_cost_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "scope",
          "workflow_version_id",
          "recipient_id",
          "variables"
        ],
        "additionalProperties": false,
        "description": "Pins an already published workflow version with 1..10 distinct, immutable send steps using published templates. Conditions, digests, delays, fallback and arbitrary graphs are unsupported and rejected. max_cost_microunits limits each send step."
      },
      "AcceptedMessage": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "request_id": {
            "type": "string",
            "description": "Persisted original intake request identity; preserved on replay. X-Request-Id identifies the current HTTP attempt."
          },
          "status": {
            "const": "accepted"
          },
          "accepted_at": {
            "type": "string",
            "format": "date-time"
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "message_id",
          "request_id",
          "status",
          "accepted_at",
          "replayed"
        ],
        "additionalProperties": false,
        "description": "Durable intake receipt, including on replay. This does not assert provider acceptance, delivery, display or application acknowledgement. Read the message inspector for current evidence."
      },
      "BatchRecipientResult": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "client_reference": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]{1,128}$",
                "minLength": 1,
                "maxLength": 128
              },
              "recipient_id": {
                "type": "string",
                "format": "uuid"
              },
              "accepted": {
                "const": true
              },
              "result": {
                "$ref": "#/components/schemas/AcceptedMessage"
              }
            },
            "required": [
              "client_reference",
              "recipient_id",
              "accepted",
              "result"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "client_reference": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:-]{1,128}$",
                "minLength": 1,
                "maxLength": 128
              },
              "recipient_id": {
                "type": "string",
                "format": "uuid"
              },
              "accepted": {
                "const": false
              },
              "error": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[a-z_]{1,64}$"
                  },
                  "status": {
                    "type": "integer",
                    "minimum": 400,
                    "maximum": 599
                  },
                  "retryable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "code",
                  "status",
                  "retryable"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "client_reference",
              "recipient_id",
              "accepted",
              "error"
            ],
            "additionalProperties": false
          }
        ]
      },
      "BatchResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchRecipientResult"
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "request_id",
          "results"
        ],
        "additionalProperties": false
      },
      "WorkflowResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcceptedMessage"
            },
            "minItems": 1,
            "maxItems": 10
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "workflow_version_id",
          "messages",
          "replayed"
        ],
        "additionalProperties": false
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "pattern": "^[a-z_]{1,64}$"
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "retryable"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "request_id"
        ],
        "additionalProperties": false,
        "description": "Safe error metadata; credentials, recipients, content and dependency/SQL error text are omitted. A transport failure may leave intake unknown. Reuse the original key; never invent a new intent to resolve uncertainty."
      },
      "DeliveryStatus": {
        "type": "string",
        "enum": [
          "accepted",
          "submitting",
          "uncertain",
          "provider_accepted",
          "delivered",
          "failed",
          "blocked",
          "expired",
          "cancelled"
        ]
      },
      "MessageSummary": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "request_id": {
            "type": "string"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "purpose": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/DeliveryStatus"
          },
          "accepted_at": {
            "type": "string",
            "format": "date-time"
          },
          "provider_accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "app_acknowledged_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "reserved_cost_microunits": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "content_expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "message_id",
          "request_id",
          "channel",
          "purpose",
          "status",
          "accepted_at",
          "provider_accepted_at",
          "delivered_at",
          "app_acknowledged_at",
          "reserved_cost_microunits",
          "content_expires_at"
        ],
        "additionalProperties": false
      },
      "Window": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "additionalProperties": false
      },
      "MessagePage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "window": {
            "$ref": "#/components/schemas/Window"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "denominator": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "request_id": {
            "type": "string"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MessageSummary"
            },
            "maxItems": 100
          }
        },
        "required": [
          "scope",
          "next_cursor",
          "window",
          "as_of",
          "denominator",
          "request_id",
          "messages"
        ],
        "additionalProperties": false
      },
      "TimelineEvent": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "type",
          "at",
          "reason"
        ],
        "additionalProperties": false
      },
      "ContentAccess": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "access": {
                "const": "available"
              },
              "snapshot": {
                "type": "object",
                "additionalProperties": true
              }
            },
            "required": [
              "access",
              "snapshot"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "access": {
                "type": "string",
                "enum": [
                  "expired",
                  "denied"
                ]
              }
            },
            "required": [
              "access"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Current message.content.read authority and unexpired retention are both required for a snapshot. Metadata roles receive no bodies or recipient addresses."
      },
      "PolicyDecisionSummary": {
        "type": "object",
        "properties": {
          "stage": {
            "type": "string",
            "enum": [
              "intake",
              "dispatch"
            ]
          },
          "decision": {
            "type": "string",
            "enum": [
              "allow",
              "deny"
            ]
          },
          "reason_code": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "stage",
          "decision",
          "reason_code",
          "created_at"
        ],
        "additionalProperties": false
      },
      "MessageCost": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "access": {
                "type": "string",
                "enum": [
                  "denied",
                  "unavailable"
                ]
              }
            },
            "required": [
              "access"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "access": {
                "const": "recorded"
              },
              "unit_scale": {
                "const": 1000000
              },
              "currency": {
                "type": "string"
              },
              "rate_version_id": {
                "type": "string",
                "format": "uuid"
              },
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "reservations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "reservation_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "budget_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "amount_microunits": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "held",
                        "settled",
                        "released"
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "reservation_id",
                    "budget_id",
                    "amount_microunits",
                    "status",
                    "created_at",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "access",
              "unit_scale",
              "currency",
              "rate_version_id",
              "amount_microunits",
              "reservations"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Current usage.read console grant required. Service message-read grants do not grant cost access. amount_microunits counts the intent once; hierarchical reservation rows must not be summed as additional usage."
      },
      "MessageInspector": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "message": {
            "$ref": "#/components/schemas/MessageSummary"
          },
          "timeline": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimelineEvent"
            }
          },
          "content": {
            "type": "object",
            "properties": {
              "access": {
                "const": "not_requested"
              }
            },
            "required": [
              "access"
            ],
            "additionalProperties": false
          },
          "cost": {
            "$ref": "#/components/schemas/MessageCost"
          },
          "policy_decisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyDecisionSummary"
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "message",
          "timeline",
          "content",
          "cost",
          "policy_decisions",
          "request_id"
        ],
        "additionalProperties": false,
        "description": "Metadata inspector never loads a body snapshot. Request the separate /content resource with fresh authority to access content."
      },
      "OverviewResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "window": {
            "$ref": "#/components/schemas/Window"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "denominator": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "counts": {
            "type": "object",
            "properties": {
              "accepted": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "submitting": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "uncertain": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "provider_accepted": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "delivered": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "failed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "blocked": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "expired": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "cancelled": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "accepted",
              "submitting",
              "uncertain",
              "provider_accepted",
              "delivered",
              "failed",
              "blocked",
              "expired",
              "cancelled"
            ],
            "additionalProperties": false
          },
          "app_acknowledged": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "window",
          "as_of",
          "denominator",
          "counts",
          "app_acknowledged",
          "request_id"
        ],
        "additionalProperties": false,
        "description": "Window denominator and freshness accompany counts. Provider acceptance, delivery and application acknowledgement are distinct evidence; none implies a human read."
      },
      "RequestLogRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "request_id": {
            "type": "string"
          },
          "route_code": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "status_code": {
            "type": "integer",
            "minimum": 100,
            "maximum": 599
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_ms": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "request_id",
          "route_code",
          "method",
          "status_code",
          "error_code",
          "duration_ms",
          "created_at"
        ],
        "additionalProperties": false
      },
      "AuditLogRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "actor_user_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "event_type": {
            "type": "string"
          },
          "subject_id": {
            "type": "string"
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "retention_class": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "actor_user_id",
          "event_type",
          "subject_id",
          "request_id",
          "reason_code",
          "retention_class",
          "created_at"
        ],
        "additionalProperties": false
      },
      "RequestLogPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "window": {
            "$ref": "#/components/schemas/Window"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "denominator": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "request_id": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequestLogRow"
            },
            "maxItems": 100
          }
        },
        "required": [
          "scope",
          "next_cursor",
          "window",
          "as_of",
          "denominator",
          "request_id",
          "items"
        ],
        "additionalProperties": false
      },
      "AuditLogPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "window": {
            "$ref": "#/components/schemas/Window"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "denominator": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "request_id": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuditLogRow"
            },
            "maxItems": 100
          }
        },
        "required": [
          "scope",
          "next_cursor",
          "window",
          "as_of",
          "denominator",
          "request_id",
          "items"
        ],
        "additionalProperties": false
      },
      "ContentTab": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "content": {
            "$ref": "#/components/schemas/ContentAccess"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "message_id",
          "content",
          "request_id"
        ],
        "additionalProperties": false
      },
      "TimelineTab": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "timeline": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimelineEvent"
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "message_id",
          "timeline",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RequestTab": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "request": {
            "type": "object",
            "properties": {
              "request_id": {
                "type": "string"
              },
              "accepted_at": {
                "type": "string",
                "format": "date-time"
              },
              "status": {
                "$ref": "#/components/schemas/DeliveryStatus"
              }
            },
            "required": [
              "request_id",
              "accepted_at",
              "status"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "message_id",
          "request",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CostTab": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "cost": {
            "$ref": "#/components/schemas/MessageCost"
          },
          "policy_decisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyDecisionSummary"
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "message_id",
          "cost",
          "policy_decisions",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AppEventMetadata": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "event_type": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "delivering",
              "delivered",
              "dead"
            ]
          },
          "generation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "attempt_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "payload_expired": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "message_id",
          "event_type",
          "state",
          "generation",
          "attempt_count",
          "due_at",
          "created_at",
          "payload_expired",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AppEventReplay": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "generation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "state": {
            "const": "pending"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "generation",
          "state",
          "request_id"
        ],
        "additionalProperties": false
      },
      "ConsoleContext": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string",
            "format": "uuid"
          },
          "organizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "role": {
                  "type": "string"
                },
                "applications": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "name": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "environments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "environment": {
                              "type": "string",
                              "enum": [
                                "sandbox",
                                "production"
                              ]
                            },
                            "status": {
                              "type": "string"
                            },
                            "brands": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  },
                                  "binding_status": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name",
                                  "status",
                                  "binding_status"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "environment",
                            "status",
                            "brands"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "status",
                      "environments"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "name",
                "role",
                "applications"
              ],
              "additionalProperties": false
            }
          },
          "requires_mfa": {
            "type": "boolean"
          },
          "capabilities": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            }
          }
        },
        "required": [
          "request_id",
          "user_id",
          "organizations",
          "capabilities"
        ],
        "additionalProperties": false,
        "description": "Workspace picker context: every active membership scope the session may select, plus configured capabilities and the MFA requirement for the account."
      },
      "WorkspaceInventory": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "workspaces": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "status": {
                  "const": "active"
                },
                "reporting_timezone": {
                  "type": "string"
                },
                "require_mfa": {
                  "type": "boolean"
                },
                "configuration_version": {
                  "type": "integer",
                  "minimum": 1
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "admin",
                    "developer",
                    "finance",
                    "support",
                    "reviewer"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "slug",
                "status",
                "reporting_timezone",
                "require_mfa",
                "configuration_version",
                "role"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "locked_workspaces": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "require_mfa": {
                  "const": true
                },
                "locked": {
                  "const": true
                }
              },
              "required": [
                "id",
                "require_mfa",
                "locked"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "recovery": {
            "type": "object",
            "properties": {
              "independent_recovery_required": {
                "const": true
              },
              "email_transport_owned_by": {
                "const": "supabase"
              },
              "provider_recovery_required": {
                "const": true
              },
              "verification": {
                "const": "pending_operator_drill"
              }
            },
            "required": [
              "independent_recovery_required",
              "email_transport_owned_by",
              "provider_recovery_required",
              "verification"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "workspaces",
          "locked_workspaces",
          "recovery"
        ],
        "additionalProperties": false
      },
      "WorkspaceOrganization": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "status": {
            "const": "active"
          },
          "reporting_timezone": {
            "type": "string"
          },
          "require_mfa": {
            "type": "boolean"
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "status",
          "reporting_timezone",
          "require_mfa",
          "configuration_version"
        ],
        "additionalProperties": false
      },
      "WorkspaceSettings": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization": {
            "$ref": "#/components/schemas/WorkspaceOrganization"
          },
          "data_ai": {
            "type": "object",
            "properties": {
              "content_retention_days": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "raw_retention_days": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "diagnostic_consent": {
                "type": "boolean"
              },
              "ai_enabled": {
                "type": "boolean"
              },
              "configuration_version": {
                "type": "integer",
                "minimum": 1
              }
            },
            "required": [
              "content_retention_days",
              "raw_retention_days",
              "diagnostic_consent",
              "ai_enabled",
              "configuration_version"
            ],
            "additionalProperties": false
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "manage_organization": {
                "type": "boolean"
              },
              "manage_team": {
                "type": "boolean"
              },
              "manage_data": {
                "type": "boolean"
              },
              "manage_security": {
                "type": "boolean"
              }
            },
            "required": [
              "manage_organization",
              "manage_team",
              "manage_data",
              "manage_security"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "organization",
          "data_ai",
          "capabilities"
        ],
        "additionalProperties": false
      },
      "WorkspaceOrganizationUpdate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "reporting_timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "require_mfa": {
            "type": "boolean"
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "WorkspaceOrganizationResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization": {
            "$ref": "#/components/schemas/WorkspaceOrganization"
          }
        },
        "required": [
          "request_id",
          "organization"
        ],
        "additionalProperties": false
      },
      "WorkspaceSsoRequest": {
        "type": "object",
        "properties": {
          "workspace": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
          }
        },
        "required": [
          "workspace"
        ],
        "additionalProperties": false
      },
      "WorkspaceSsoProvider": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "provider_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "request_id",
          "provider_id"
        ],
        "additionalProperties": false
      },
      "WorkspaceSsoVerification": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "membership": {
            "type": "string",
            "enum": [
              "active",
              "invitation_required"
            ]
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "membership"
        ],
        "additionalProperties": false
      },
      "WorkspaceSsoStatus": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "workspace": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled",
              "not_configured"
            ]
          }
        },
        "required": [
          "request_id",
          "workspace",
          "status"
        ],
        "additionalProperties": false
      },
      "RenderedEmail": {
        "type": "object",
        "properties": {
          "kind": {
            "const": "inline"
          },
          "renderer_version": {
            "const": "email-v1"
          },
          "subject": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "encoded_size_bytes": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "kind",
          "renderer_version",
          "subject",
          "text",
          "content_sha256",
          "encoded_size_bytes"
        ],
        "additionalProperties": false
      },
      "EmailDefinition": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 998
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536
          },
          "html": {
            "type": "string",
            "maxLength": 131072
          },
          "variables": {
            "$ref": "#/components/schemas/Variables"
          },
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "subject",
          "text"
        ],
        "additionalProperties": false
      },
      "TemplatePreviewRequest": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/EmailDefinition"
          },
          {
            "type": "object",
            "properties": {
              "template_version_id": {
                "type": "string",
                "format": "uuid"
              },
              "variables": {
                "$ref": "#/components/schemas/Variables"
              }
            },
            "required": [
              "template_version_id"
            ],
            "additionalProperties": false
          }
        ]
      },
      "TemplatePublishRequest": {
        "type": "object",
        "properties": {
          "template_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 998
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536
          },
          "html": {
            "type": "string",
            "maxLength": 131072
          }
        },
        "required": [
          "template_key",
          "subject",
          "text"
        ],
        "additionalProperties": false
      },
      "TemplatePreview": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "content": {
            "$ref": "#/components/schemas/RenderedEmail"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "content"
        ],
        "additionalProperties": false
      },
      "TemplatePublished": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "template_key": {
            "type": "string"
          },
          "version_id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "published": {
            "const": true
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "template_key",
          "version_id",
          "version",
          "published"
        ],
        "additionalProperties": false
      },
      "TemplatePage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "template_key": {
                  "type": "string"
                },
                "version_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "version": {
                  "type": "integer",
                  "minimum": 1
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "subject": {
                  "type": "string"
                }
              },
              "required": [
                "template_key",
                "version_id",
                "version",
                "published_at",
                "subject"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "templates"
        ],
        "additionalProperties": false
      },
      "CapabilityReadiness": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "not_configured",
              "provider_pending",
              "dns_pending",
              "test_required",
              "ready",
              "drifted",
              "paused",
              "removed"
            ]
          },
          "evidence_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "next_action": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "evidence_at",
          "next_action"
        ],
        "additionalProperties": false
      },
      "EmailDomain": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "domain": {
            "type": "string"
          },
          "provider": {
            "type": "string",
            "enum": [
              "resend",
              "ses"
            ]
          },
          "region": {
            "type": "string"
          },
          "provider_connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_domain_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "removed"
            ]
          },
          "mail_from_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "receiving_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "tracking_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "sending": {
            "$ref": "#/components/schemas/CapabilityReadiness"
          },
          "receiving": {
            "$ref": "#/components/schemas/CapabilityReadiness"
          },
          "tracking": {
            "$ref": "#/components/schemas/CapabilityReadiness"
          },
          "ownership_verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "provider_verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "controlled_test_message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "controlled_test_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "domain",
          "provider",
          "region",
          "provider_connection_id",
          "provider_account_id",
          "provider_domain_id",
          "configuration_version",
          "lifecycle",
          "mail_from_subdomain",
          "receiving_subdomain",
          "tracking_subdomain",
          "sending",
          "receiving",
          "tracking",
          "ownership_verified_at",
          "provider_verified_at",
          "controlled_test_message_id",
          "controlled_test_at",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "DomainDnsRecord": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "ownership",
              "dkim",
              "mail_from",
              "receiving",
              "tracking"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "TXT",
              "CNAME",
              "MX"
            ]
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "minimum": 0,
            "maximum": 65535
          },
          "source": {
            "type": "string",
            "enum": [
              "valosend",
              "provider"
            ]
          },
          "region": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "matched",
              "mismatch",
              "lookup_failed"
            ]
          },
          "observed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "observed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "purpose",
          "type",
          "name",
          "value",
          "source",
          "region",
          "status",
          "observed_at",
          "observed"
        ],
        "additionalProperties": false
      },
      "EmailDomainDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "domain": {
            "type": "string"
          },
          "provider": {
            "type": "string",
            "enum": [
              "resend",
              "ses"
            ]
          },
          "region": {
            "type": "string"
          },
          "provider_connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_domain_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "removed"
            ]
          },
          "mail_from_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "receiving_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "tracking_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "sending": {
            "$ref": "#/components/schemas/CapabilityReadiness"
          },
          "receiving": {
            "$ref": "#/components/schemas/CapabilityReadiness"
          },
          "tracking": {
            "$ref": "#/components/schemas/CapabilityReadiness"
          },
          "ownership_verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "provider_verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "controlled_test_message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "controlled_test_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "areas": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "overview",
                "dns",
                "sending",
                "receiving",
                "tracking",
                "activity",
                "settings"
              ]
            }
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomainDnsRecord"
            }
          },
          "dmarc": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "records": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "status": {
                "type": "string",
                "enum": [
                  "found",
                  "missing",
                  "multiple",
                  "lookup_failed"
                ]
              },
              "observed_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "host",
              "records",
              "status",
              "observed_at"
            ],
            "additionalProperties": false
          },
          "activity": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": {
                  "type": "string"
                },
                "at": {
                  "type": "string",
                  "format": "date-time"
                },
                "evidence_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "type",
                "at",
                "evidence_reference"
              ],
              "additionalProperties": false
            }
          },
          "dependencies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string"
                },
                "reference_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "kind",
                "reference_id"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "domain",
          "provider",
          "region",
          "provider_connection_id",
          "provider_account_id",
          "provider_domain_id",
          "configuration_version",
          "lifecycle",
          "mail_from_subdomain",
          "receiving_subdomain",
          "tracking_subdomain",
          "sending",
          "receiving",
          "tracking",
          "ownership_verified_at",
          "provider_verified_at",
          "controlled_test_message_id",
          "controlled_test_at",
          "created_at",
          "updated_at",
          "areas",
          "records",
          "dmarc",
          "activity",
          "dependencies"
        ],
        "additionalProperties": false
      },
      "EmailDomainPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailDomainDetail"
            },
            "maxItems": 200
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "domains"
        ],
        "additionalProperties": false
      },
      "EmailDomainResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "domain": {
            "$ref": "#/components/schemas/EmailDomainDetail"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "domain"
        ],
        "additionalProperties": false
      },
      "CreateEmailDomain": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "minLength": 3,
            "maxLength": 253
          },
          "provider_connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "region": {
            "type": "string"
          },
          "mail_from_subdomain": {
            "type": "string"
          },
          "receiving_subdomain": {
            "type": "string"
          },
          "tracking_subdomain": {
            "type": "string"
          }
        },
        "required": [
          "domain",
          "provider_connection_id",
          "region"
        ],
        "additionalProperties": false
      },
      "EmailDomainSettings": {
        "type": "object",
        "properties": {
          "mail_from_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "receiving_subdomain": {
            "type": [
              "string",
              "null"
            ]
          },
          "tracking_subdomain": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "EmailDomainLifecycle": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "removed"
            ]
          }
        },
        "required": [
          "action"
        ],
        "additionalProperties": false
      },
      "CanaryGrantRequest": {
        "type": "object",
        "properties": {
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "purpose": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "sender_id",
          "recipient_id",
          "purpose",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "CanaryGrant": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "grant_id",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "DomainTestEvidence": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "received_headers_sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "message_id",
          "received_headers_sha256"
        ],
        "additionalProperties": false
      },
      "ProviderReadiness": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string"
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "readiness": {
            "type": "string",
            "enum": [
              "ready",
              "not_ready"
            ]
          },
          "production_access": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "sending_enabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "feedback_ready": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "max_24_hour_send": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0
          },
          "sent_last_24_hours": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0
          },
          "max_send_rate": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0
          },
          "daily_headroom": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0
          },
          "daily_limit_unlimited": {
            "type": "boolean"
          },
          "configuration_set": {
            "type": [
              "string",
              "null"
            ]
          },
          "evidence_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "observed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "next_action": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "connection_id",
          "provider",
          "region",
          "status",
          "readiness",
          "production_access",
          "sending_enabled",
          "feedback_ready",
          "max_24_hour_send",
          "sent_last_24_hours",
          "max_send_rate",
          "daily_headroom",
          "daily_limit_unlimited",
          "configuration_set",
          "evidence_reference",
          "observed_at",
          "next_action"
        ],
        "additionalProperties": false
      },
      "EmailProviderPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderReadiness"
            }
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "providers"
        ],
        "additionalProperties": false
      },
      "EmailSender": {
        "type": "object",
        "properties": {
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "identity": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "allowed_purposes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "require_tls": {
            "type": "boolean"
          },
          "track_opens": {
            "type": "boolean"
          },
          "track_clicks": {
            "type": "boolean"
          },
          "paused": {
            "type": "boolean"
          },
          "pause_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "sender_id",
          "domain_id",
          "identity",
          "status",
          "allowed_purposes",
          "require_tls",
          "track_opens",
          "track_clicks",
          "paused",
          "pause_reason"
        ],
        "additionalProperties": false
      },
      "EmailSenderSettings": {
        "type": "object",
        "properties": {
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "require_tls": {
            "const": true
          },
          "track_opens": {
            "type": "boolean"
          },
          "track_clicks": {
            "type": "boolean"
          },
          "paused": {
            "type": "boolean"
          }
        },
        "required": [
          "domain_id",
          "require_tls",
          "track_opens",
          "track_clicks"
        ],
        "additionalProperties": false
      },
      "EmailSenderPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "senders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSender"
            }
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "senders"
        ],
        "additionalProperties": false
      },
      "EmailOperations": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "window": {
            "$ref": "#/components/schemas/Window"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProviderReadiness"
            }
          },
          "senders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSender"
            }
          },
          "counts": {
            "type": "object",
            "properties": {
              "provider_accepted": {
                "type": "integer",
                "minimum": 0
              },
              "delivered": {
                "type": "integer",
                "minimum": 0
              },
              "bounced": {
                "type": "integer",
                "minimum": 0
              },
              "complained": {
                "type": "integer",
                "minimum": 0
              },
              "uncertain": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "provider_accepted",
              "delivered",
              "bounced",
              "complained",
              "uncertain"
            ],
            "additionalProperties": false
          },
          "rates": {
            "type": "object",
            "properties": {
              "denominator": {
                "const": "provider_accepted"
              },
              "bounce_rate": {
                "type": [
                  "number",
                  "null"
                ],
                "minimum": 0
              },
              "complaint_rate": {
                "type": [
                  "number",
                  "null"
                ],
                "minimum": 0
              }
            },
            "required": [
              "denominator",
              "bounce_rate",
              "complaint_rate"
            ],
            "additionalProperties": false
          },
          "next_actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "target_id": {
                  "type": "string"
                },
                "href": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "target_id",
                "href"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "window",
          "providers",
          "senders",
          "counts",
          "rates",
          "next_actions"
        ],
        "additionalProperties": false
      },
      "SetupReceiptRequest": {
        "type": "object",
        "properties": {
          "integration": {
            "type": "string",
            "enum": [
              "smtp",
              "supabase_auth",
              "vercel",
              "react_email",
              "resend",
              "ses"
            ]
          },
          "target_reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "scoped_credential",
                "sender_verified",
                "tracking_off",
                "durable_intake",
                "provider_receipt",
                "rotation_reviewed",
                "server_only"
              ]
            },
            "maxItems": 7,
            "uniqueItems": true
          }
        },
        "required": [
          "integration",
          "target_reference",
          "environment",
          "checks"
        ],
        "additionalProperties": false
      },
      "SetupReceipt": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "integration": {
            "type": "string",
            "enum": [
              "smtp",
              "supabase_auth",
              "vercel",
              "react_email",
              "resend",
              "ses"
            ]
          },
          "target_reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "scoped_credential",
                "sender_verified",
                "tracking_off",
                "durable_intake",
                "provider_receipt",
                "rotation_reviewed",
                "server_only"
              ]
            },
            "maxItems": 7,
            "uniqueItems": true
          },
          "status": {
            "const": "recorded"
          },
          "production_auth_certified": {
            "const": false
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "integration",
          "target_reference",
          "environment",
          "checks",
          "status",
          "production_auth_certified",
          "recorded_at"
        ],
        "additionalProperties": false
      },
      "SetupReceiptPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "receipts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SetupReceipt"
            }
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "receipts"
        ],
        "additionalProperties": false
      },
      "SetupReceiptResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "integration": {
            "type": "string",
            "enum": [
              "smtp",
              "supabase_auth",
              "vercel",
              "react_email",
              "resend",
              "ses"
            ]
          },
          "target_reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "scoped_credential",
                "sender_verified",
                "tracking_off",
                "durable_intake",
                "provider_receipt",
                "rotation_reviewed",
                "server_only"
              ]
            },
            "maxItems": 7,
            "uniqueItems": true
          },
          "status": {
            "const": "recorded"
          },
          "production_auth_certified": {
            "const": false
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "id",
          "integration",
          "target_reference",
          "environment",
          "checks",
          "status",
          "production_auth_certified",
          "recorded_at"
        ],
        "additionalProperties": false
      },
      "EmailSuppressionPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "suppressions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "recipient_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "channel": {
                  "const": "email"
                },
                "purpose": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "topic_key": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reason": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "provider_account_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                }
              },
              "required": [
                "id",
                "recipient_id",
                "channel",
                "purpose",
                "topic_key",
                "reason",
                "source",
                "created_at",
                "provider_account_id"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "suppressions"
        ],
        "additionalProperties": false
      },
      "InboundSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "blocked",
              "quarantined"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_receipt_id": {
            "type": "string"
          },
          "from": {
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "type": "string"
          },
          "reply_to_message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "attachment_count": {
            "type": "integer",
            "minimum": 0
          },
          "transport_authenticated": {
            "const": true
          },
          "sender_authenticated": {
            "const": false
          },
          "business_authorization": {
            "const": false
          }
        },
        "required": [
          "id",
          "route_id",
          "domain_id",
          "received_at",
          "status",
          "reason",
          "provider_receipt_id",
          "from",
          "subject",
          "reply_to_message_id",
          "attachment_count",
          "transport_authenticated",
          "sender_authenticated",
          "business_authorization"
        ],
        "additionalProperties": false
      },
      "InboundDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "blocked",
              "quarantined"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "provider_receipt_id": {
            "type": "string"
          },
          "from": {
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "type": "string"
          },
          "reply_to_message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "attachment_count": {
            "type": "integer",
            "minimum": 0
          },
          "transport_authenticated": {
            "const": true
          },
          "sender_authenticated": {
            "const": false
          },
          "business_authorization": {
            "const": false
          },
          "text": {
            "type": [
              "string",
              "null"
            ]
          },
          "content_access": {
            "type": "string",
            "enum": [
              "available",
              "denied",
              "expired"
            ]
          },
          "message_id_header": {
            "type": [
              "string",
              "null"
            ]
          },
          "in_reply_to": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "references": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "transport_evidence": {
            "type": "object"
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "filename": {
                  "type": "string"
                },
                "content_type": {
                  "type": "string"
                },
                "size_bytes": {
                  "type": "integer",
                  "minimum": 0
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "quarantined",
                    "scanning",
                    "clean",
                    "malicious",
                    "unsupported",
                    "scan_failed"
                  ]
                },
                "scan_engine": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "scan_evidence_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "filename",
                "content_type",
                "size_bytes",
                "sha256",
                "status",
                "scan_engine",
                "scan_evidence_reference",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "app_events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "event_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "state": {
                  "type": "string"
                },
                "event_type": {
                  "type": "string"
                }
              },
              "required": [
                "event_id",
                "state",
                "event_type"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "route_id",
          "domain_id",
          "received_at",
          "status",
          "reason",
          "provider_receipt_id",
          "from",
          "subject",
          "reply_to_message_id",
          "attachment_count",
          "transport_authenticated",
          "sender_authenticated",
          "business_authorization",
          "text",
          "content_access",
          "message_id_header",
          "in_reply_to",
          "references",
          "transport_evidence",
          "attachments",
          "app_events"
        ],
        "additionalProperties": false
      },
      "InboundPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InboundSummary"
            },
            "maxItems": 100
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "messages",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "InboundResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "message": {
            "$ref": "#/components/schemas/InboundDetail"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "message"
        ],
        "additionalProperties": false
      },
      "InboundRouteRequest": {
        "type": "object",
        "properties": {
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "local_part": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9._+-]{0,63}$"
          }
        },
        "required": [
          "domain_id",
          "provider_account_id",
          "local_part"
        ],
        "additionalProperties": false
      },
      "InboundRouteResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "address": {
            "type": "string"
          },
          "status": {
            "const": "active"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "id",
          "address",
          "status"
        ],
        "additionalProperties": false
      },
      "AttachmentAccess": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_in_seconds": {
            "const": 60
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "url",
          "expires_at",
          "expires_in_seconds"
        ],
        "additionalProperties": false
      },
      "PublicPreferences": {
        "type": "object",
        "properties": {
          "brand_name": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "topic_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "withdrawn": {
            "type": "boolean"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "available_actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "unsubscribe_topic",
                "unsubscribe_purpose",
                "unsubscribe_brand"
              ]
            }
          }
        },
        "required": [
          "brand_name",
          "purpose",
          "topic_key",
          "withdrawn",
          "expires_at",
          "available_actions"
        ],
        "additionalProperties": false
      },
      "PreferenceWithdrawal": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 180
          },
          "action": {
            "type": "string",
            "enum": [
              "unsubscribe_topic",
              "unsubscribe_purpose",
              "unsubscribe_brand"
            ]
          }
        },
        "required": [
          "token",
          "action"
        ],
        "additionalProperties": false
      },
      "PreferenceWithdrawalResult": {
        "type": "object",
        "properties": {
          "withdrawn": {
            "const": true
          },
          "change_id": {
            "type": "string",
            "format": "uuid"
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "withdrawn",
          "change_id",
          "replayed"
        ],
        "additionalProperties": false
      },
      "EmailIntegrationCatalog": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "integrations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "category": {
                  "type": "string"
                },
                "interface": {
                  "type": "string"
                },
                "availability": {
                  "type": "string",
                  "enum": [
                    "implemented_activation_gated",
                    "available",
                    "planned"
                  ]
                },
                "description": {
                  "type": "string"
                },
                "documentation_url": {
                  "type": "string",
                  "format": "uri"
                },
                "checks": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "supports_native_install": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "name",
                "category",
                "interface",
                "availability",
                "description",
                "documentation_url",
                "checks",
                "supports_native_install"
              ],
              "additionalProperties": false
            }
          },
          "smtp": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "host": {
                    "type": "string"
                  },
                  "port": {
                    "const": 465
                  },
                  "encryption": {
                    "const": "TLS"
                  },
                  "qualified": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "host",
                  "port",
                  "encryption",
                  "qualified"
                ],
                "additionalProperties": false
              }
            ]
          },
          "receipts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SetupReceipt"
            }
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "integrations",
          "smtp",
          "receipts"
        ],
        "additionalProperties": false
      },
      "EmptyBody": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "RefreshProviderRequest": {
        "type": "object",
        "properties": {
          "region": {
            "type": "string"
          }
        },
        "required": [
          "region"
        ],
        "additionalProperties": false
      },
      "EmailDnsConnection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "dns_provider": {
            "type": "string",
            "enum": [
              "cloudflare",
              "godaddy"
            ]
          },
          "zone_name": {
            "type": "string"
          },
          "status": {
            "const": "active"
          },
          "connected_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_applied_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "purpose": {
                  "type": "string",
                  "enum": [
                    "ownership",
                    "dkim",
                    "mail_from",
                    "receiving",
                    "tracking",
                    "dmarc"
                  ]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "TXT",
                    "CNAME",
                    "MX"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "priority": {
                  "type": "number",
                  "minimum": 0
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "created",
                    "present",
                    "conflict",
                    "failed"
                  ]
                },
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "existing": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "purpose",
                "type",
                "name",
                "value",
                "status",
                "existing"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "dns_provider",
          "zone_name",
          "status",
          "connected_at",
          "last_applied_at",
          "results"
        ],
        "additionalProperties": false
      },
      "EmailDnsDetection": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "detection": {
            "type": "object",
            "properties": {
              "dns_provider": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cloudflare",
                  "godaddy",
                  null
                ]
              },
              "nameservers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "supported": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "cloudflare",
                    "godaddy"
                  ]
                }
              }
            },
            "required": [
              "dns_provider",
              "nameservers",
              "supported"
            ],
            "additionalProperties": false
          },
          "connection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmailDnsConnection"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "detection",
          "connection"
        ],
        "additionalProperties": false
      },
      "EmailDnsConnectRequest": {
        "type": "object",
        "properties": {
          "dns_provider": {
            "type": "string",
            "enum": [
              "cloudflare",
              "godaddy"
            ]
          },
          "credential": {
            "type": "string"
          }
        },
        "required": [
          "dns_provider",
          "credential"
        ],
        "additionalProperties": false
      },
      "EmailDnsConnectResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "connection": {
            "$ref": "#/components/schemas/EmailDnsConnection"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "connection"
        ],
        "additionalProperties": false
      },
      "EmailDnsSetupRequest": {
        "type": "object",
        "properties": {
          "include_dmarc": {
            "type": "boolean"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "EmailDnsSetupResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "connection": {
            "$ref": "#/components/schemas/EmailDnsConnection"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "purpose": {
                  "type": "string",
                  "enum": [
                    "ownership",
                    "dkim",
                    "mail_from",
                    "receiving",
                    "tracking",
                    "dmarc"
                  ]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "TXT",
                    "CNAME",
                    "MX"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "priority": {
                  "type": "number",
                  "minimum": 0
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "created",
                    "present",
                    "conflict",
                    "failed"
                  ]
                },
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "existing": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "purpose",
                "type",
                "name",
                "value",
                "status",
                "existing"
              ],
              "additionalProperties": false
            }
          },
          "domain": {
            "$ref": "#/components/schemas/EmailDomainDetail"
          },
          "provisioned": {
            "type": "boolean"
          },
          "provision_error": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "connection",
          "results",
          "domain",
          "provisioned",
          "provision_error"
        ],
        "additionalProperties": false
      },
      "EmailDnsDisconnectResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "connection": {
            "type": "null"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "connection"
        ],
        "additionalProperties": false
      },
      "DnsPublicationList": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "operation_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "fingerprint": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "requested_delegation_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "domain_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "expected_version": {
                  "type": "integer",
                  "minimum": 0
                },
                "connection_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "record_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "prepared",
                    "approved",
                    "submitted",
                    "confirmed",
                    "conflict"
                  ]
                },
                "record": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "TXT",
                        "MX",
                        "CNAME"
                      ]
                    },
                    "value": {
                      "type": "string"
                    },
                    "purpose": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "name",
                    "type",
                    "value",
                    "purpose"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "operation_id",
                "fingerprint",
                "requested_delegation_id",
                "domain_id",
                "expected_version",
                "connection_id",
                "record_id",
                "status",
                "record"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "operations"
        ],
        "additionalProperties": false
      },
      "DnsPublicationApproval": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "format": "uuid"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "requested_delegation_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "operation_id",
          "fingerprint",
          "requested_delegation_id"
        ],
        "additionalProperties": false
      },
      "DnsPublicationApproved": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string",
            "format": "uuid"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "requested_delegation_id": {
            "type": "string",
            "format": "uuid"
          },
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "expected_version": {
            "type": "integer",
            "minimum": 0
          },
          "connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "record_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "prepared",
              "approved",
              "submitted",
              "confirmed",
              "conflict"
            ]
          },
          "record": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "TXT",
                  "MX",
                  "CNAME"
                ]
              },
              "value": {
                "type": "string"
              },
              "purpose": {
                "type": "string"
              },
              "priority": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "name",
              "type",
              "value",
              "purpose"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "operation_id",
          "fingerprint",
          "requested_delegation_id",
          "domain_id",
          "expected_version",
          "connection_id",
          "record_id",
          "status",
          "record"
        ],
        "additionalProperties": false
      },
      "SmtpCredential": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "username": {
            "type": "string"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "sender": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "revoked",
              "expired"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "max_per_minute": {
            "type": "integer",
            "minimum": 1,
            "maximum": 600
          },
          "key_prefix": {
            "type": "string"
          },
          "rotated_from_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "rotation_overlap_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "recipient_mode": {
            "type": "string",
            "enum": [
              "enrolled",
              "transactional_address"
            ],
            "default": "enrolled",
            "description": "Transactional address mode accepts one destination email address via SMTP or POST /v1/emails. The credential is bound to one verified sender and the exact transactional purpose."
          }
        },
        "required": [
          "id",
          "username",
          "sender_id",
          "sender",
          "purpose",
          "status",
          "created_at",
          "expires_at",
          "max_per_minute",
          "key_prefix",
          "rotated_from_id",
          "rotation_overlap_until",
          "recipient_mode"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "recipient_mode"
              ],
              "properties": {
                "recipient_mode": {
                  "const": "transactional_address"
                }
              }
            },
            "then": {
              "properties": {
                "purpose": {
                  "const": "transactional"
                },
                "max_per_minute": {
                  "maximum": 30,
                  "default": 5
                }
              }
            }
          }
        ]
      },
      "SmtpCredentialPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "credentials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmtpCredential"
            },
            "maxItems": 200
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "credentials"
        ],
        "additionalProperties": false
      },
      "SmtpCredentialCreate": {
        "type": "object",
        "properties": {
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "purpose": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "recipient_mode": {
            "type": "string",
            "enum": [
              "enrolled",
              "transactional_address"
            ],
            "default": "enrolled",
            "description": "Transactional address mode accepts one destination email address via SMTP or POST /v1/emails. The credential is bound to one verified sender and the exact transactional purpose."
          },
          "max_per_minute": {
            "type": "integer",
            "minimum": 1,
            "maximum": 600
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "sender_id",
          "purpose"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "recipient_mode"
              ],
              "properties": {
                "recipient_mode": {
                  "const": "transactional_address"
                }
              }
            },
            "then": {
              "properties": {
                "purpose": {
                  "const": "transactional"
                },
                "max_per_minute": {
                  "maximum": 30,
                  "default": 5
                }
              }
            }
          }
        ]
      },
      "SmtpCredentialRotate": {
        "type": "object",
        "properties": {
          "overlap_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 86400
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "SmtpCredentialReveal": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "credential": {
            "$ref": "#/components/schemas/SmtpCredential"
          },
          "secret": {
            "type": "object",
            "properties": {
              "username": {
                "type": "string"
              },
              "password": {
                "type": "string"
              },
              "disclosure": {
                "const": "once"
              }
            },
            "required": [
              "username",
              "password",
              "disclosure"
            ],
            "additionalProperties": false
          },
          "production_auth_certified": {
            "const": false
          },
          "previous_expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "credential",
          "secret",
          "production_auth_certified"
        ],
        "additionalProperties": false
      },
      "SmtpCredentialResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "credential": {
            "$ref": "#/components/schemas/SmtpCredential"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "credential"
        ],
        "additionalProperties": false
      },
      "CreateManagedInbox": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Trimmed display name without Unicode control or formatting characters.",
            "not": {
              "pattern": "[\\x00-\\x1f\\x7f-\\x9f]"
            }
          },
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "local_part": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9._+-]{0,63}$",
            "description": "Lowercase receiving address prefix. Generated reply aliases are reserved.",
            "not": {
              "pattern": "^r-[0-9a-f]{48}$"
            }
          },
          "idempotency_key": {
            "type": "string",
            "format": "uuid",
            "description": "Stable for one create request within the exact organization, application, environment and brand."
          }
        },
        "required": [
          "name",
          "domain_id",
          "local_part",
          "idempotency_key"
        ],
        "additionalProperties": false
      },
      "ManagedInbox": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
            "description": "Trimmed display name without Unicode control or formatting characters.",
            "not": {
              "pattern": "[\\x00-\\x1f\\x7f-\\x9f]"
            }
          },
          "address": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "route_id",
          "domain_id",
          "name",
          "address",
          "status",
          "created_at"
        ],
        "additionalProperties": false
      },
      "ManagedInboxResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "inbox": {
            "$ref": "#/components/schemas/ManagedInbox"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "inbox"
        ],
        "additionalProperties": false
      },
      "ManagedInboxCreated": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "inbox": {
            "$ref": "#/components/schemas/ManagedInbox"
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "inbox",
          "replayed"
        ],
        "additionalProperties": false
      },
      "ManagedInboxDisabled": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "inbox": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "route_id": {
                "type": "string",
                "format": "uuid"
              },
              "domain_id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
                "description": "Trimmed display name without Unicode control or formatting characters.",
                "not": {
                  "pattern": "[\\x00-\\x1f\\x7f-\\x9f]"
                }
              },
              "address": {
                "type": "string"
              },
              "status": {
                "const": "disabled"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "route_id",
              "domain_id",
              "name",
              "address",
              "status",
              "created_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "inbox"
        ],
        "additionalProperties": false
      },
      "ManagedInboxPage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "inboxes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ManagedInbox"
            },
            "maxItems": 100
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Za-z0-9_-]{1,512}$"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "inboxes",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "ManagedInboxMessagePage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "messages": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/InboundSummary"
                },
                {
                  "properties": {
                    "status": {
                      "const": "received"
                    }
                  }
                }
              ]
            },
            "maxItems": 100
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[A-Za-z0-9_-]{1,512}$"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "messages",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "ManagedInboxMessageResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "message": {
            "allOf": [
              {
                "$ref": "#/components/schemas/InboundDetail"
              },
              {
                "properties": {
                  "status": {
                    "const": "received"
                  }
                }
              }
            ]
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "message"
        ],
        "additionalProperties": false
      },
      "ManagedInboxScanRetry": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "status": {
            "const": "quarantined"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "status"
        ],
        "additionalProperties": false
      },
      "AttachmentRetryResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "quarantined",
              "scanning",
              "clean",
              "malicious",
              "unsupported",
              "scan_failed"
            ]
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "status"
        ],
        "additionalProperties": false
      },
      "InboundRoutePage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "routes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "domain_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "provider_account_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "address": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "paused"
                  ]
                },
                "receiving_ready": {
                  "type": "boolean"
                },
                "domain_configuration_version": {
                  "type": "integer",
                  "minimum": 1
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "domain_id",
                "provider_account_id",
                "address",
                "status",
                "receiving_ready",
                "domain_configuration_version",
                "created_at",
                "updated_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "sender_bindings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sender_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "route_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "address": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "sender_id",
                "route_id",
                "address",
                "updated_at"
              ],
              "additionalProperties": false
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "routes",
          "sender_bindings",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "ReplyRouteBindingRequest": {
        "type": "object",
        "properties": {
          "route_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          }
        },
        "required": [
          "route_id"
        ],
        "additionalProperties": false
      },
      "ReplyRouteBindingResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "binding": {
            "type": "object",
            "properties": {
              "sender_id": {
                "type": "string",
                "format": "uuid"
              },
              "route_id": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid"
              },
              "address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "sender_id",
              "route_id",
              "address",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "binding"
        ],
        "additionalProperties": false
      },
      "InboundRoutePaused": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "const": "paused"
          }
        },
        "required": [
          "scope",
          "as_of",
          "request_id",
          "route_id",
          "status"
        ],
        "additionalProperties": false
      },
      "AgentPolicy": {
        "type": "object",
        "properties": {
          "response_identities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "recipient_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "user_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "minimum_aal": {
                  "type": "string",
                  "enum": [
                    "aal1",
                    "aal2"
                  ]
                }
              },
              "required": [
                "recipient_id",
                "user_id",
                "minimum_aal"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "prepare",
                "execute",
                "cancel",
                "events:read",
                "events:replay",
                "request_response"
              ]
            },
            "minItems": 1,
            "maxItems": 7,
            "uniqueItems": true
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "purposes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
            },
            "minItems": 1,
            "maxItems": 32,
            "uniqueItems": true
          },
          "recipient_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "sender_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "template_version_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 100,
            "uniqueItems": true
          },
          "allow_inline": {
            "type": "boolean"
          },
          "max_cost_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "max_total_cost_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "max_messages": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "max_messages_per_task": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "max_messages_per_minute": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "max_ttl_seconds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "response_identities",
          "currency",
          "actions",
          "channels",
          "purposes",
          "recipient_ids",
          "sender_ids",
          "template_version_ids",
          "allow_inline",
          "max_cost_microunits",
          "max_total_cost_microunits",
          "max_messages",
          "max_messages_per_task",
          "max_messages_per_minute",
          "max_ttl_seconds"
        ],
        "additionalProperties": false,
        "if": {
          "properties": {
            "actions": {
              "const": [
                "read"
              ]
            }
          }
        },
        "else": {
          "properties": {
            "recipient_ids": {
              "minItems": 1
            },
            "sender_ids": {
              "minItems": 1
            },
            "max_messages": {
              "minimum": 1
            },
            "max_messages_per_task": {
              "minimum": 1
            },
            "max_messages_per_minute": {
              "minimum": 1
            }
          }
        }
      },
      "AgentResponseSpec": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "choices": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "minItems": 1,
            "maxItems": 10,
            "uniqueItems": true
          },
          "expected_user_id": {
            "type": "string",
            "format": "uuid"
          },
          "minimum_aal": {
            "type": "string",
            "enum": [
              "aal1",
              "aal2"
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "link_variable": {
            "type": "string",
            "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
          }
        },
        "required": [
          "question",
          "choices",
          "expected_user_id",
          "minimum_aal",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "AgentMessage": {
        "type": "object",
        "properties": {
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "purpose": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "topic_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InlineEmailContent"
              },
              {
                "$ref": "#/components/schemas/PushContent"
              },
              {
                "$ref": "#/components/schemas/SmsContent"
              },
              {
                "$ref": "#/components/schemas/WhatsAppContent"
              },
              {
                "$ref": "#/components/schemas/TemplateContent"
              }
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time"
          },
          "max_cost_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "recipient_id",
          "channel",
          "purpose",
          "sender_id",
          "content"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "whatsapp"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WhatsAppContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "sms"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SmsContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "email"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InlineEmailContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "push"
                }
              }
            },
            "then": {
              "properties": {
                "content": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PushContent"
                    },
                    {
                      "$ref": "#/components/schemas/TemplateContent"
                    }
                  ]
                }
              }
            }
          }
        ],
        "description": "Immutable direct message intake; no workflow is required. Content is bounded to 192 KiB canonical UTF-8 JSON; the full HTTP body is at most 256 KiB. Current scope, recipient, purpose, sender, credential and budget authority apply."
      },
      "PrepareAgentAction": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "task_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "parent_action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "message": {
            "$ref": "#/components/schemas/AgentMessage"
          },
          "response": {
            "$ref": "#/components/schemas/AgentResponseSpec"
          }
        },
        "required": [
          "scope",
          "grant_id",
          "task_id",
          "action_id",
          "message"
        ],
        "additionalProperties": false
      },
      "PreparedAgentAction": {
        "type": "object",
        "properties": {
          "preparation_id": {
            "type": "string",
            "format": "uuid"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "task_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "executable": {
            "type": "boolean"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "quote": {
            "type": "object",
            "properties": {
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "amount_microunits",
              "currency"
            ],
            "additionalProperties": false
          },
          "message": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DirectMessageRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "response_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "next_action": {
            "type": "string",
            "enum": [
              "execute_prepared",
              "request_authority",
              "get_operation",
              "prepare_new_action"
            ]
          },
          "request_id": {
            "type": "string"
          },
          "push_preview": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PushPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_preview": {
            "$ref": "#/components/schemas/SmsQuote"
          },
          "whatsapp_preview": {
            "$ref": "#/components/schemas/WhatsAppQuote"
          }
        },
        "required": [
          "preparation_id",
          "principal_id",
          "grant_id",
          "task_id",
          "action_id",
          "fingerprint",
          "executable",
          "expires_at",
          "quote",
          "message",
          "response_url",
          "replayed",
          "next_action",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentOperationData": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "format": "uuid"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "task_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "parent_action_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "delivery_status": {
            "type": "string",
            "enum": [
              "prepared",
              "preparation_expired",
              "accepted",
              "submitting",
              "uncertain",
              "provider_accepted",
              "delivered",
              "failed",
              "blocked",
              "expired",
              "cancelled"
            ]
          },
          "response_status": {
            "type": "string",
            "enum": [
              "not_requested",
              "awaiting_response",
              "responded",
              "expired",
              "not_sent"
            ]
          },
          "business_authorization": {
            "const": false
          },
          "response": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "actor_user_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "aal": {
                    "type": "string",
                    "enum": [
                      "aal1",
                      "aal2"
                    ]
                  },
                  "answered_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "answer": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "actor_user_id",
                  "aal",
                  "answered_at",
                  "answer"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "provider_accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cost": {
            "type": "object",
            "properties": {
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "amount_microunits",
              "currency"
            ],
            "additionalProperties": false
          },
          "next_action": {
            "type": "string",
            "enum": [
              "execute_prepared",
              "wait_for_delivery",
              "reconcile",
              "wait_for_response",
              "check_application_policy",
              "none"
            ]
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "operation_id",
          "principal_id",
          "grant_id",
          "task_id",
          "action_id",
          "parent_action_id",
          "message_id",
          "delivery_status",
          "response_status",
          "business_authorization",
          "response",
          "accepted_at",
          "provider_accepted_at",
          "delivered_at",
          "cost",
          "next_action"
        ],
        "additionalProperties": false
      },
      "AgentOperation": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "format": "uuid"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "task_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "parent_action_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "delivery_status": {
            "type": "string",
            "enum": [
              "prepared",
              "preparation_expired",
              "accepted",
              "submitting",
              "uncertain",
              "provider_accepted",
              "delivered",
              "failed",
              "blocked",
              "expired",
              "cancelled"
            ]
          },
          "response_status": {
            "type": "string",
            "enum": [
              "not_requested",
              "awaiting_response",
              "responded",
              "expired",
              "not_sent"
            ]
          },
          "business_authorization": {
            "const": false
          },
          "response": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "actor_user_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "aal": {
                    "type": "string",
                    "enum": [
                      "aal1",
                      "aal2"
                    ]
                  },
                  "answered_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "answer": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "actor_user_id",
                  "aal",
                  "answered_at",
                  "answer"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "provider_accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cost": {
            "type": "object",
            "properties": {
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "amount_microunits",
              "currency"
            ],
            "additionalProperties": false
          },
          "next_action": {
            "type": "string",
            "enum": [
              "execute_prepared",
              "wait_for_delivery",
              "reconcile",
              "wait_for_response",
              "check_application_policy",
              "none"
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "operation_id",
          "principal_id",
          "grant_id",
          "task_id",
          "action_id",
          "parent_action_id",
          "message_id",
          "delivery_status",
          "response_status",
          "business_authorization",
          "response",
          "accepted_at",
          "provider_accepted_at",
          "delivered_at",
          "cost",
          "next_action",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentCancellation": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "enum": [
              "cancelled",
              "already_submitted",
              "uncertain",
              "already_terminal",
              "not_sent"
            ]
          },
          "operation": {
            "$ref": "#/components/schemas/AgentOperationData"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "outcome",
          "operation",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentGrant": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "parent_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "revoked"
            ]
          },
          "policy": {
            "$ref": "#/components/schemas/AgentPolicy"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "organization_id",
          "application_id",
          "environment",
          "brand_id",
          "id",
          "principal_id",
          "parent_id",
          "name",
          "status",
          "policy",
          "expires_at",
          "created_at"
        ],
        "additionalProperties": false
      },
      "AgentCapabilities": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "grants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentGrant"
            }
          },
          "senders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "identity": {
                  "type": "string"
                },
                "channel": {
                  "type": "string"
                },
                "ready": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "identity",
                "channel",
                "ready"
              ],
              "additionalProperties": false
            }
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "external_id": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "external_id"
              ],
              "additionalProperties": false
            }
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "template_key": {
                  "type": "string"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "channel": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "template_key",
                "version",
                "channel"
              ],
              "additionalProperties": false
            }
          },
          "structured_responses": {
            "type": "boolean"
          },
          "supported_channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "principal_id",
          "grants",
          "senders",
          "recipients",
          "templates",
          "structured_responses",
          "supported_channels",
          "as_of",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentEvents": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "event_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "event_type": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "generation": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "attempt_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "operation_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "task_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                },
                "action_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                },
                "message_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "event_id",
                "event_type",
                "state",
                "generation",
                "attempt_count",
                "created_at",
                "operation_id",
                "task_id",
                "action_id",
                "message_id"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "events",
          "next_cursor",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentResponseView": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "question": {
            "type": "string"
          },
          "choices": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_response",
              "responded"
            ]
          },
          "answer": {
            "type": [
              "string",
              "null"
            ]
          },
          "business_authorization": {
            "const": false
          }
        },
        "required": [
          "request_id",
          "question",
          "choices",
          "expires_at",
          "status",
          "answer",
          "business_authorization"
        ],
        "additionalProperties": false
      },
      "AgentResponseRecorded": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "response_id": {
            "type": "string",
            "format": "uuid"
          },
          "duplicate": {
            "type": "boolean"
          },
          "business_authorization": {
            "const": false
          }
        },
        "required": [
          "request_id",
          "response_id",
          "duplicate",
          "business_authorization"
        ],
        "additionalProperties": false
      },
      "AgentInventory": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "principals": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "bindings": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "tasks": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "resources": {
            "type": "object"
          },
          "limits": {
            "type": "object"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "principals",
          "grants",
          "bindings",
          "tasks",
          "operations",
          "resources",
          "limits",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentAdminResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "request_id"
        ],
        "additionalProperties": true
      },
      "CreateAgentGrant": {
        "type": "object",
        "properties": {
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "parent_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "policy": {
            "$ref": "#/components/schemas/AgentPolicy"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "principal_id",
          "name",
          "policy",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "PushPreview": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_version": {
            "type": "integer",
            "minimum": 0
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "endpoint_version": {
            "type": "integer",
            "minimum": 0
          },
          "credential_version": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 0
          },
          "collapse_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "type": "string",
            "enum": [
              "private",
              "public"
            ]
          }
        },
        "required": [
          "project_id",
          "project_version",
          "endpoint_id",
          "endpoint_version",
          "credential_version",
          "title",
          "body",
          "url",
          "expires_at",
          "ttl_seconds",
          "collapse_key",
          "visibility"
        ],
        "additionalProperties": false
      },
      "RecipientSessionRequest": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "installation_id": {
            "type": "string",
            "format": "uuid"
          },
          "sandbox_device_registration": {
            "type": "object",
            "properties": {
              "proof_id": {
                "type": "string",
                "format": "uuid"
              },
              "project_id": {
                "type": "string",
                "format": "uuid"
              },
              "token_sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "proof_id",
              "project_id",
              "token_sha256"
            ],
            "additionalProperties": false
          },
          "origin": {
            "type": "string",
            "format": "uri"
          },
          "ttl_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 900
          }
        },
        "required": [
          "scope",
          "recipient_id",
          "installation_id"
        ],
        "additionalProperties": false
      },
      "RecipientSession": {
        "type": "object",
        "properties": {
          "session_token": {
            "type": "string",
            "pattern": "^vr1_[A-Za-z0-9_-]{43}$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "session_token",
          "expires_at",
          "recipient_id",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WebPushSubscription": {
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          },
          "keys": {
            "type": "object",
            "properties": {
              "p256dh": {
                "type": "string"
              },
              "auth": {
                "type": "string"
              }
            },
            "required": [
              "p256dh",
              "auth"
            ],
            "additionalProperties": false
          },
          "expirationTime": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "endpoint",
          "keys"
        ],
        "additionalProperties": false
      },
      "RegisterPushEndpoint": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "permission": {
            "const": "granted"
          },
          "token": {
            "type": "string",
            "maxLength": 4096
          },
          "subscription": {
            "$ref": "#/components/schemas/WebPushSubscription"
          },
          "previous_endpoint_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "project_id",
          "permission"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "required": [
              "token"
            ],
            "not": {
              "required": [
                "subscription"
              ]
            }
          },
          {
            "required": [
              "subscription"
            ],
            "not": {
              "required": [
                "token"
              ]
            }
          }
        ]
      },
      "PushEndpoint": {
        "type": "object",
        "properties": {
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "platform": {
            "type": "string",
            "enum": [
              "ios",
              "android",
              "web"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "endpoint_id",
          "project_id",
          "platform",
          "status",
          "version",
          "expires_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientFeedItem": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "available_at": {
            "type": "string",
            "format": "date-time"
          },
          "read_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "message_id",
          "title",
          "body",
          "url",
          "available_at",
          "read_at"
        ],
        "additionalProperties": false
      },
      "RecipientFeed": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "title": {
                  "type": "string"
                },
                "body": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "available_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "read_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              },
              "required": [
                "message_id",
                "title",
                "body",
                "url",
                "available_at",
                "read_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "unread_count": {
            "type": "integer",
            "minimum": 0
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "items",
          "next_cursor",
          "unread_count",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientFeedItemResult": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "available_at": {
            "type": "string",
            "format": "date-time"
          },
          "read_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "message_id",
          "title",
          "body",
          "url",
          "available_at",
          "read_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientFeedRead": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "read_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "message_id",
          "read_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PushAcknowledgement": {
        "type": "object",
        "properties": {
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "acknowledgement": {
            "type": "string",
            "enum": [
              "received",
              "opened"
            ]
          }
        },
        "required": [
          "endpoint_id",
          "acknowledgement"
        ],
        "additionalProperties": false
      },
      "PushAcknowledged": {
        "type": "object",
        "properties": {
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "app_acknowledged_at": {
            "type": "string",
            "format": "date-time"
          },
          "replayed": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "message_id",
          "app_acknowledged_at",
          "replayed",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientProject": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "enum": [
              "expo",
              "fcm",
              "apns",
              "webpush"
            ]
          },
          "platform": {
            "type": "string",
            "enum": [
              "ios",
              "android",
              "web"
            ]
          },
          "external_project_id": {
            "type": "string"
          },
          "origin": {
            "type": [
              "string",
              "null"
            ]
          },
          "vapid_public_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "credential_version": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "provider",
          "platform",
          "external_project_id",
          "origin",
          "vapid_public_key",
          "credential_version",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientPreferences": {
        "type": "object",
        "properties": {
          "topics": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "topic_key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "purpose": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "granted",
                    "denied",
                    "unset"
                  ]
                },
                "freshness": {
                  "type": "string"
                }
              },
              "required": [
                "topic_key",
                "label",
                "purpose",
                "status",
                "freshness"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "pending": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "purpose": {
                  "type": "string"
                },
                "decision": {
                  "type": "string",
                  "enum": [
                    "granted",
                    "denied"
                  ]
                },
                "state": {
                  "type": "string"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "id",
                "purpose",
                "decision",
                "state",
                "version"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "authority": {
            "type": "object",
            "properties": {
              "epoch": {
                "type": "integer",
                "minimum": 0
              },
              "owner": {
                "type": "string",
                "enum": [
                  "application",
                  "valosend"
                ]
              }
            },
            "required": [
              "epoch",
              "owner"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "topics",
          "pending",
          "authority",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientPreferenceInput": {
        "type": "object",
        "properties": {
          "purpose": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "decision": {
            "type": "string",
            "enum": [
              "granted",
              "denied"
            ]
          },
          "authority_epoch": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "purpose",
          "decision",
          "authority_epoch"
        ],
        "additionalProperties": false
      },
      "RecipientPreferenceResult": {
        "type": "object",
        "properties": {
          "change_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "applied",
              "pending_authority",
              "rejected"
            ]
          },
          "decision": {
            "type": "string",
            "enum": [
              "granted",
              "denied"
            ]
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "change_id",
          "state",
          "decision",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientPreferenceConfirmation": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "change_id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "authority_epoch": {
            "type": "integer",
            "minimum": 0
          },
          "decision": {
            "type": "string",
            "enum": [
              "granted",
              "denied"
            ]
          }
        },
        "required": [
          "scope",
          "change_id",
          "version",
          "authority_epoch",
          "decision"
        ],
        "additionalProperties": false
      },
      "RecipientPreferenceConfirmed": {
        "type": "object",
        "properties": {
          "change_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "applied",
              "rejected"
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "change_id",
          "state",
          "replayed",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientLogout": {
        "type": "object",
        "properties": {
          "logged_out": {
            "const": true
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "logged_out",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PushEndpointRevoked": {
        "type": "object",
        "properties": {
          "disabled": {
            "const": true
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "disabled",
          "request_id"
        ],
        "additionalProperties": false
      },
      "RecipientEndpointTransfer": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "installation_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "scope",
          "endpoint_id",
          "recipient_id",
          "installation_id"
        ],
        "additionalProperties": false
      },
      "RecipientEndpointTransferred": {
        "type": "object",
        "properties": {
          "transferred": {
            "const": true
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "transferred",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PushProject": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "enum": [
              "expo",
              "fcm",
              "apns",
              "webpush"
            ]
          },
          "external_project_id": {
            "type": "string"
          },
          "platform": {
            "type": "string",
            "enum": [
              "ios",
              "android",
              "web"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "credential_reference": {
            "type": "string"
          },
          "credential_version": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "origin": {
            "type": [
              "string",
              "null"
            ]
          },
          "origin_verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "vapid_public_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "deep_link_prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "public_title": {
            "type": "string"
          },
          "public_body": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "active_endpoints": {
            "type": "integer",
            "minimum": 0
          },
          "pending_receipts": {
            "type": "integer",
            "minimum": 0
          },
          "handoff_receipts": {
            "type": "integer",
            "minimum": 0
          },
          "last_receipt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "organization_id",
          "application_id",
          "environment",
          "brand_id",
          "id",
          "sender_id",
          "provider_connection_id",
          "provider_account_id",
          "provider",
          "external_project_id",
          "platform",
          "status",
          "credential_reference",
          "credential_version",
          "origin",
          "origin_verified_at",
          "vapid_public_key",
          "deep_link_prefixes",
          "public_title",
          "public_body",
          "version",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "PushProjects": {
        "type": "object",
        "properties": {
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PushProject"
            }
          },
          "connections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "provider": {
                  "type": "string"
                },
                "external_account_id": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "readiness": {
                  "type": "string"
                },
                "customer_credential_version": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "Current bound version for a customer connection, or null until credentials are connected. Omitted for manually configured credentials."
                }
              },
              "required": [
                "id",
                "provider",
                "external_account_id",
                "status",
                "readiness"
              ],
              "additionalProperties": false
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "projects",
          "connections",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PushProjectInput": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "provider_connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider": {
            "type": "string",
            "enum": [
              "expo",
              "fcm",
              "apns",
              "webpush"
            ]
          },
          "external_project_id": {
            "type": "string"
          },
          "platform": {
            "type": "string",
            "enum": [
              "ios",
              "android",
              "web"
            ]
          },
          "credential_reference": {
            "type": "string"
          },
          "credential_version": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "origin": {
            "type": "string",
            "format": "uri"
          },
          "vapid_public_key": {
            "type": "string"
          },
          "deep_link_prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "public_title": {
            "type": "string"
          },
          "public_body": {
            "type": "string"
          },
          "allowed_purposes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "scope",
          "provider_connection_id",
          "provider",
          "external_project_id",
          "platform",
          "credential_reference",
          "credential_version",
          "deep_link_prefixes",
          "public_title",
          "public_body"
        ],
        "additionalProperties": false
      },
      "PushProjectSaved": {
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/PushProject"
          },
          "origin_challenge": {
            "type": "string"
          },
          "resubscription_required": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "project",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PushCredentialCheck": {
        "type": "object",
        "properties": {
          "configuration": {
            "const": "valid"
          },
          "upstream_access": {
            "const": "unverified"
          },
          "project_version": {
            "type": "integer",
            "minimum": 0
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "configuration",
          "upstream_access",
          "project_version",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PushOriginVerified": {
        "type": "object",
        "properties": {
          "verified": {
            "const": true
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "verified",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PushEndpointInventory": {
        "type": "object",
        "properties": {
          "endpoints": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "endpoint_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "recipient_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "installation_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0
                },
                "last_seen_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "status": {
                  "type": "string"
                },
                "invalid_reason": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "expires_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              },
              "required": [
                "endpoint_id",
                "recipient_id",
                "installation_id",
                "version",
                "last_seen_at",
                "status",
                "invalid_reason",
                "expires_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "endpoints",
          "next_cursor",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SandboxPushDeviceProof": {
        "type": "object",
        "properties": {
          "proof_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_version": {
            "type": "integer",
            "minimum": 0
          },
          "submission_status": {
            "type": "string",
            "enum": [
              "awaiting_device",
              "submission_unknown",
              "accepted",
              "rejected"
            ]
          },
          "provider_accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "app_received_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "proof_id",
          "project_id",
          "project_version",
          "submission_status",
          "provider_accepted_at",
          "app_received_at",
          "expires_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SandboxPushDevicePairing": {
        "type": "object",
        "properties": {
          "proof_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "installation_id": {
            "type": "string",
            "format": "uuid"
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid"
          },
          "pairing_code": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "proof_id",
          "project_id",
          "recipient_id",
          "installation_id",
          "endpoint_id",
          "pairing_code",
          "expires_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SandboxPushDeviceApproval": {
        "type": "object",
        "properties": {
          "proof_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_version": {
            "type": "integer",
            "minimum": 0
          },
          "submission_status": {
            "type": "string",
            "enum": [
              "awaiting_device",
              "submission_unknown",
              "accepted",
              "rejected"
            ]
          },
          "provider_accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "app_received_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          }
        },
        "required": [
          "proof_id",
          "project_id",
          "project_version",
          "submission_status",
          "provider_accepted_at",
          "app_received_at",
          "expires_at",
          "request_id",
          "scope"
        ],
        "additionalProperties": false
      },
      "SmsRoute": {
        "type": "object",
        "properties": {
          "channel": {
            "const": "sms"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "identity": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "message_type": {
            "type": "string"
          },
          "origination_identity": {
            "type": "string"
          },
          "configuration_set": {
            "type": "string"
          },
          "protect_configuration_id": {
            "type": "string"
          },
          "opt_out_list": {
            "type": "string"
          },
          "feedback_topic_arn": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "registration_status": {
            "type": "string"
          },
          "destination_prefixes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "stop_keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "help_keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "canary_destinations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "inbound_topic_arn": {
            "type": [
              "string",
              "null"
            ]
          },
          "opt_out_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "two_way": {
            "type": "boolean"
          },
          "production_access": {
            "type": "boolean"
          },
          "require_device": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "max_segments": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "daily_cap_microunits": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "limits": {
            "type": "object",
            "properties": {
              "key_per_minute": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "recipient_per_hour": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "device_per_hour": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "country_per_minute": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "key_per_minute",
              "recipient_per_hour",
              "device_per_hour",
              "country_per_minute"
            ],
            "additionalProperties": false
          },
          "profile": {
            "type": "object",
            "properties": {
              "gsm_single": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "gsm_multi": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unicode_single": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unicode_multi": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "gsm_single",
              "gsm_multi",
              "unicode_single",
              "unicode_multi"
            ],
            "additionalProperties": false
          },
          "approval_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "verified_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "certified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "channel",
          "organization_id",
          "application_id",
          "environment",
          "brand_id",
          "id",
          "sender_id",
          "provider_connection_id",
          "provider_account_id",
          "identity",
          "region",
          "country",
          "purpose",
          "message_type",
          "origination_identity",
          "configuration_set",
          "protect_configuration_id",
          "opt_out_list",
          "feedback_topic_arn",
          "status",
          "registration_status",
          "destination_prefixes",
          "stop_keywords",
          "help_keywords",
          "canary_destinations",
          "inbound_topic_arn",
          "opt_out_url",
          "two_way",
          "production_access",
          "require_device",
          "version",
          "max_segments",
          "daily_cap_microunits",
          "limits",
          "profile",
          "approval_reference",
          "verified_at",
          "verified_until",
          "certified_at",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "SmsTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "template_key": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "template_key",
          "version"
        ],
        "additionalProperties": false
      },
      "SmsInventory": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "routes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsRoute"
            }
          },
          "truncated": {
            "type": "boolean"
          },
          "connections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "provider": {
                  "const": "aws-eum-sms"
                },
                "external_account_id": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "readiness": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "provider",
                "external_account_id",
                "status",
                "readiness"
              ],
              "additionalProperties": false
            }
          },
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmsTemplate"
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "routes",
          "truncated",
          "connections",
          "templates",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SmsRouteSaved": {
        "type": "object",
        "properties": {
          "route": {
            "$ref": "#/components/schemas/SmsRoute"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "route",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SmsRouteVerified": {
        "type": "object",
        "properties": {
          "route": {
            "$ref": "#/components/schemas/SmsRoute"
          },
          "observation": {
            "type": "object",
            "properties": {
              "approved": {
                "type": "boolean"
              },
              "production_access": {
                "type": "boolean"
              },
              "reference": {
                "type": "string"
              }
            },
            "required": [
              "approved",
              "production_access",
              "reference"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "route",
          "observation",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SmsQuote": {
        "type": "object",
        "properties": {
          "encoding": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "destination_hash": {
            "type": "string"
          },
          "body_hash": {
            "type": "string"
          },
          "final_body": {
            "type": "string"
          },
          "opt_out_instruction": {
            "type": "string"
          },
          "units": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "segments": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "characters": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "single_capacity": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "multipart_capacity": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "route_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "amount_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "rate_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "reply_supported": {
            "type": "boolean"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "encoding",
          "currency",
          "country",
          "destination_hash",
          "body_hash",
          "final_body",
          "opt_out_instruction",
          "units",
          "segments",
          "characters",
          "single_capacity",
          "multipart_capacity",
          "route_version",
          "amount_microunits",
          "route_id",
          "sender_id",
          "rate_version_id",
          "reply_supported",
          "valid_until"
        ],
        "additionalProperties": false
      },
      "SmsQuoteResult": {
        "type": "object",
        "properties": {
          "quote": {
            "$ref": "#/components/schemas/SmsQuote"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "quote",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SmsRateSaved": {
        "type": "object",
        "properties": {
          "rate_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "currency": {
            "const": "USD"
          },
          "unit_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "rate_version_id",
          "currency",
          "unit_microunits",
          "valid_until",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SmsTemplateSaved": {
        "type": "object",
        "properties": {
          "template": {
            "$ref": "#/components/schemas/SmsTemplate"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "template",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SmsEvidence": {
        "type": "object",
        "properties": {
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "rates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "encoding": {
                  "type": "string"
                },
                "rate_version_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "currency": {
                  "type": "string"
                },
                "unit_microunits": {
                  "oneOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    }
                  ]
                },
                "valid_from": {
                  "type": "string",
                  "format": "date-time"
                },
                "valid_until": {
                  "type": "string",
                  "format": "date-time"
                },
                "reference": {
                  "type": "string"
                },
                "event_price_unit": {
                  "type": "string",
                  "enum": [
                    "usd",
                    "milli_cent"
                  ]
                },
                "carrier_fee_unit": {
                  "type": "string",
                  "enum": [
                    "usd",
                    "milli_cent"
                  ]
                },
                "carrier_fee_mode": {
                  "type": "string",
                  "enum": [
                    "included",
                    "additional"
                  ]
                }
              },
              "required": [
                "encoding",
                "rate_version_id",
                "currency",
                "unit_microunits",
                "valid_from",
                "valid_until",
                "reference",
                "event_price_unit",
                "carrier_fee_unit",
                "carrier_fee_mode"
              ],
              "additionalProperties": false
            }
          },
          "receipts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "intent_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "encoding": {
                  "type": "string"
                },
                "segments": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "reserved_microunits": {
                  "oneOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    }
                  ]
                },
                "status": {
                  "type": "string"
                },
                "accepted_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "observed": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "parts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "amount_microunits": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "parts",
                        "amount_microunits",
                        "currency"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "intent_id",
                "encoding",
                "segments",
                "reserved_microunits",
                "status",
                "accepted_at",
                "observed"
              ],
              "additionalProperties": false
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "kind": {
                  "type": "string"
                },
                "reference": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "kind",
                "reference",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "inbound": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "recipient_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "disposition": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "recipient_id",
                "disposition",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "route_id",
          "rates",
          "receipts",
          "next_cursor",
          "actions",
          "inbound",
          "request_id"
        ],
        "additionalProperties": false
      },
      "SmsInboundReceipt": {
        "type": "object",
        "properties": {
          "inbound_id": {
            "type": "string",
            "format": "uuid"
          },
          "duplicate": {
            "type": "boolean"
          },
          "disposition": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "inbound_id",
          "duplicate",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppRoute": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "channel": {
            "const": "whatsapp"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_connection_id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "waba_id": {
            "type": "string",
            "pattern": "^[0-9]{5,32}$"
          },
          "phone_number_id": {
            "type": "string",
            "pattern": "^[0-9]{5,32}$"
          },
          "business_id": {
            "type": "string",
            "pattern": "^[0-9]{5,32}$"
          },
          "identity": {
            "type": "string",
            "pattern": "^\\+[1-9][0-9]{6,14}$"
          },
          "graph_version": {
            "type": "string",
            "pattern": "^v[0-9]{1,2}\\.0$"
          },
          "ownership": {
            "type": "string",
            "enum": [
              "internal",
              "customer_test",
              "customer"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "canary",
              "active",
              "paused",
              "disabled"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "eligibility": {
            "type": "string",
            "enum": [
              "pending",
              "eligible",
              "ineligible"
            ]
          },
          "quality": {
            "type": "string",
            "enum": [
              "UNKNOWN",
              "GREEN",
              "YELLOW",
              "RED"
            ]
          },
          "messaging_limit": {
            "type": "string"
          },
          "verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "verified_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "readiness_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "certified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "canary_destinations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 5
          },
          "purposes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 20
          },
          "currency": {
            "const": "USD"
          },
          "daily_cap_microunits": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "organization_id",
          "application_id",
          "environment",
          "brand_id",
          "channel",
          "id",
          "sender_id",
          "provider_connection_id",
          "provider_account_id",
          "waba_id",
          "phone_number_id",
          "business_id",
          "identity",
          "graph_version",
          "ownership",
          "status",
          "version",
          "eligibility",
          "quality",
          "messaging_limit",
          "verified_at",
          "verified_until",
          "readiness_reference",
          "certified_at",
          "canary_destinations",
          "purposes",
          "currency",
          "daily_cap_microunits",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "WhatsAppRouteSaved": {
        "type": "object",
        "properties": {
          "route": {
            "$ref": "#/components/schemas/WhatsAppRoute"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "route",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppRouteVerified": {
        "type": "object",
        "properties": {
          "route": {
            "$ref": "#/components/schemas/WhatsAppRoute"
          },
          "observation": {
            "type": "object",
            "properties": {
              "eligible": {
                "type": "boolean"
              },
              "quality": {
                "type": "string",
                "enum": [
                  "UNKNOWN",
                  "GREEN",
                  "YELLOW",
                  "RED"
                ]
              },
              "messaging_limit": {
                "type": "string"
              },
              "reference": {
                "type": "string"
              },
              "business_id": {
                "type": "string"
              },
              "waba_id": {
                "type": "string"
              },
              "phone_number_id": {
                "type": "string"
              },
              "identity": {
                "type": "string"
              },
              "grants": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "eligible",
              "quality",
              "messaging_limit",
              "reference",
              "business_id",
              "waba_id",
              "phone_number_id",
              "identity",
              "grants"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "route",
          "observation",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppTemplateMetadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "UTILITY",
              "MARKETING",
              "AUTHENTICATION"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "APPROVED",
              "PENDING",
              "REJECTED",
              "PAUSED",
              "DISABLED"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "observed_at": {
            "type": "string",
            "format": "date-time"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          },
          "effective_status": {
            "type": "string",
            "enum": [
              "APPROVED",
              "PENDING",
              "REJECTED",
              "PAUSED",
              "DISABLED",
              "refresh_required"
            ]
          },
          "body": {
            "type": "string"
          },
          "variable_names": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "required": [
          "id",
          "route_id",
          "name",
          "language",
          "category",
          "status",
          "version",
          "observed_at",
          "valid_until",
          "effective_status"
        ],
        "additionalProperties": false
      },
      "WhatsAppTemplate": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "UTILITY",
              "MARKETING",
              "AUTHENTICATION"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "APPROVED",
              "PENDING",
              "REJECTED",
              "PAUSED",
              "DISABLED"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "observed_at": {
            "type": "string",
            "format": "date-time"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          },
          "provider_template_id": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "variable_names": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "provider_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "reference": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "organization_id",
          "application_id",
          "environment",
          "brand_id",
          "id",
          "route_id",
          "name",
          "language",
          "category",
          "status",
          "version",
          "observed_at",
          "valid_until",
          "provider_template_id",
          "body",
          "variable_names",
          "components",
          "provider_hash",
          "reference",
          "created_at"
        ],
        "additionalProperties": false
      },
      "WhatsAppInstallation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "ownership": {
            "type": "string",
            "enum": [
              "customer_test",
              "customer"
            ]
          },
          "business_id": {
            "type": "string"
          },
          "waba_id": {
            "type": "string"
          },
          "phone_number_id": {
            "type": "string"
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "installed",
              "disconnected"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "installed_at": {
            "type": "string",
            "format": "date-time"
          },
          "disconnected_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "route_id",
          "ownership",
          "business_id",
          "waba_id",
          "phone_number_id",
          "grants",
          "status",
          "version",
          "revision",
          "installed_at"
        ],
        "additionalProperties": false
      },
      "WhatsAppSignupReadiness": {
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "external_ready": {
            "type": "boolean"
          },
          "test_only": {
            "type": "boolean"
          },
          "app_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "configuration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "redirect_uri": {
            "type": [
              "string",
              "null"
            ]
          },
          "graph_version": {
            "type": [
              "string",
              "null"
            ]
          },
          "missing_requirements": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "configured",
          "external_ready",
          "test_only",
          "app_id",
          "configuration_id",
          "redirect_uri",
          "graph_version",
          "missing_requirements"
        ],
        "additionalProperties": false
      },
      "WhatsAppInventory": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "routes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WhatsAppRoute"
            }
          },
          "truncated": {
            "type": "boolean"
          },
          "connections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "provider_account_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "external_account_id": {
                  "type": "string"
                },
                "provider": {
                  "const": "meta-whatsapp"
                },
                "status": {
                  "type": "string"
                },
                "readiness": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "provider_account_id",
                "external_account_id",
                "provider",
                "status",
                "readiness"
              ],
              "additionalProperties": false
            }
          },
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WhatsAppTemplateMetadata"
            }
          },
          "installations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WhatsAppInstallation"
            }
          },
          "signup": {
            "$ref": "#/components/schemas/WhatsAppSignupReadiness"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "routes",
          "truncated",
          "connections",
          "templates",
          "installations",
          "signup",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppTemplatesSynced": {
        "type": "object",
        "properties": {
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WhatsAppTemplate"
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "templates",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppQuote": {
        "type": "object",
        "properties": {
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "rate_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "route_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "amount_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "country": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "category": {
            "type": "string",
            "enum": [
              "SERVICE",
              "UTILITY",
              "MARKETING",
              "AUTHENTICATION"
            ]
          },
          "destination_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "body_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "final_body": {
            "type": "string"
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          },
          "template_version_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "window_expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "route_id",
          "rate_version_id",
          "route_version",
          "currency",
          "amount_microunits",
          "country",
          "category",
          "destination_hash",
          "body_hash",
          "final_body",
          "valid_until",
          "template_version_id",
          "language",
          "name",
          "components",
          "window_expires_at"
        ],
        "additionalProperties": false
      },
      "WhatsAppQuoteResult": {
        "type": "object",
        "properties": {
          "quote": {
            "$ref": "#/components/schemas/WhatsAppQuote"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "quote",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppRateSaved": {
        "type": "object",
        "properties": {
          "rate_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "country": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "SERVICE",
              "UTILITY",
              "MARKETING",
              "AUTHENTICATION"
            ]
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "unit_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "valid_until": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "rate_version_id",
          "country",
          "category",
          "currency",
          "unit_microunits",
          "valid_until",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppChargeRecorded": {
        "type": "object",
        "properties": {
          "charge_id": {
            "type": "string",
            "format": "uuid"
          },
          "settlement_status": {
            "type": "string",
            "enum": [
              "pending",
              "applied",
              "budget_attention"
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "charge_id",
          "settlement_status",
          "replayed",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppEvidence": {
        "type": "object",
        "properties": {
          "route_id": {
            "type": "string",
            "format": "uuid"
          },
          "rates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "organization_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "application_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "environment": {
                  "type": "string",
                  "enum": [
                    "sandbox",
                    "production"
                  ]
                },
                "brand_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "route_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "rate_version_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "country": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "SERVICE",
                    "UTILITY",
                    "MARKETING",
                    "AUTHENTICATION"
                  ]
                },
                "valid_from": {
                  "type": "string",
                  "format": "date-time"
                },
                "valid_until": {
                  "type": "string",
                  "format": "date-time"
                },
                "reference": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "unit_microunits": {
                  "oneOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    }
                  ]
                }
              },
              "required": [
                "organization_id",
                "application_id",
                "environment",
                "brand_id",
                "id",
                "route_id",
                "rate_version_id",
                "country",
                "currency",
                "category",
                "valid_from",
                "valid_until",
                "reference",
                "created_at",
                "unit_microunits"
              ],
              "additionalProperties": false
            }
          },
          "receipts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "intent_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "country": {
                  "type": "string"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "SERVICE",
                    "UTILITY",
                    "MARKETING",
                    "AUTHENTICATION"
                  ]
                },
                "currency": {
                  "type": "string"
                },
                "reserved_microunits": {
                  "oneOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    }
                  ]
                },
                "status": {
                  "type": "string"
                },
                "accepted_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "sent_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "delivered_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "read_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "attempt_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "provider_message_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "observed": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "amount_microunits": {
                          "oneOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            }
                          ]
                        },
                        "currency": {
                          "const": "USD"
                        },
                        "settlement_status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "applied",
                            "budget_attention"
                          ]
                        },
                        "source": {
                          "const": "operator_invoice"
                        }
                      },
                      "required": [
                        "amount_microunits",
                        "currency",
                        "settlement_status",
                        "source"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "intent_id",
                "country",
                "category",
                "currency",
                "reserved_microunits",
                "status",
                "accepted_at",
                "sent_at",
                "delivered_at",
                "read_at",
                "attempt_id",
                "provider_message_id",
                "observed"
              ],
              "additionalProperties": false
            }
          },
          "charges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "charge_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "intent_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "attempt_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "provider_message_id": {
                  "type": "string"
                },
                "country": {
                  "type": "string",
                  "pattern": "^[A-Z]{2}$"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "SERVICE",
                    "UTILITY",
                    "MARKETING",
                    "AUTHENTICATION"
                  ]
                },
                "currency": {
                  "const": "USD"
                },
                "amount_microunits": {
                  "oneOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    }
                  ]
                },
                "source_reference": {
                  "type": "string"
                },
                "evidence_reference": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "settlement_status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "applied",
                    "budget_attention"
                  ]
                }
              },
              "required": [
                "charge_id",
                "intent_id",
                "attempt_id",
                "provider_message_id",
                "country",
                "category",
                "currency",
                "amount_microunits",
                "source_reference",
                "evidence_reference",
                "created_at",
                "settlement_status"
              ],
              "additionalProperties": false
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "inbound": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "recipient_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "type": {
                  "type": "string"
                },
                "disposition": {
                  "type": "string"
                },
                "provider_message_id": {
                  "type": "string"
                },
                "in_reply_to": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "occurred_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "recipient_id",
                "type",
                "disposition",
                "provider_message_id",
                "in_reply_to",
                "occurred_at",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "inbound_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "mime_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "quarantined",
                    "released",
                    "rejected",
                    "failed"
                  ]
                },
                "scan_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "inbound_id",
                "mime_type",
                "status",
                "scan_reference",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "windows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "last_user_message_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "last_user_message_at",
                "expires_at"
              ],
              "additionalProperties": false
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "kind": {
                  "type": "string"
                },
                "reference": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "kind",
                "reference",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "route_id",
          "rates",
          "receipts",
          "charges",
          "next_cursor",
          "inbound",
          "media",
          "windows",
          "actions",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppSignupStarted": {
        "type": "object",
        "properties": {
          "session_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "minLength": 32,
            "maxLength": 128
          },
          "app_id": {
            "type": "string"
          },
          "configuration_id": {
            "type": "string"
          },
          "redirect_uri": {
            "type": "string"
          },
          "graph_version": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "session_id",
          "state",
          "app_id",
          "configuration_id",
          "redirect_uri",
          "graph_version",
          "expires_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppSignupCompleted": {
        "type": "object",
        "properties": {
          "installation": {
            "$ref": "#/components/schemas/WhatsAppInstallation"
          },
          "route": {
            "$ref": "#/components/schemas/WhatsAppRoute"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "installation",
          "route",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppDisconnected": {
        "type": "object",
        "properties": {
          "installation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "route_id": {
                "type": "string",
                "format": "uuid"
              },
              "status": {
                "const": "disconnected"
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "disconnected_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "route_id",
              "status",
              "version",
              "disconnected_at"
            ],
            "additionalProperties": false
          },
          "provider_disconnect": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "complete",
                  "shared_subscription_retained"
                ]
              },
              "reference": {
                "type": "string"
              }
            },
            "required": [
              "status",
              "reference"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "installation",
          "provider_disconnect",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppMediaDownload": {
        "type": "object",
        "properties": {
          "media_id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://"
          },
          "expires_in": {
            "type": "integer",
            "minimum": 1,
            "maximum": 60
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "media_id",
          "url",
          "expires_in",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WhatsAppIngressReceipt": {
        "type": "object",
        "properties": {
          "inbox_id": {
            "type": "string",
            "format": "uuid"
          },
          "duplicate": {
            "type": "boolean"
          },
          "processed": {
            "type": "boolean"
          },
          "statuses": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "messages": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updates": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "inbox_id",
          "duplicate",
          "processed",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationTemplateDraftInput": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "definition": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 131072
            }
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
            },
            "maxItems": 64,
            "uniqueItems": true
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reference_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                "alt": {
                  "type": "string",
                  "maxLength": 512
                }
              },
              "required": [
                "reference_id",
                "url",
                "alt"
              ],
              "additionalProperties": false
            },
            "maxItems": 16
          }
        },
        "required": [
          "key",
          "locale",
          "channel",
          "definition",
          "variables",
          "media"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "email"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "subject": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "text": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "html": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "subject",
                    "text"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "push"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "url": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "title",
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "sms"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "whatsapp"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          }
        ]
      },
      "CoordinationTemplateDraft": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "definition": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 131072
            }
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
            },
            "maxItems": 64,
            "uniqueItems": true
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reference_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                "alt": {
                  "type": "string",
                  "maxLength": 512
                }
              },
              "required": [
                "reference_id",
                "url",
                "alt"
              ],
              "additionalProperties": false
            },
            "maxItems": 16
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "const": "draft"
          },
          "source": {
            "type": "string",
            "enum": [
              "human",
              "ai"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "key",
          "locale",
          "channel",
          "definition",
          "variables",
          "media",
          "id",
          "status",
          "source",
          "created_at",
          "content_sha256"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "email"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "subject": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "text": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "html": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "subject",
                    "text"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "push"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "url": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "title",
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "sms"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "whatsapp"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          }
        ]
      },
      "CoordinationTemplateVariant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "draft_id": {
            "type": "string",
            "format": "uuid"
          },
          "reviewed_by": {
            "type": "string",
            "format": "uuid"
          },
          "reviewed_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "key",
          "locale",
          "channel",
          "template_version_id",
          "draft_id",
          "reviewed_by",
          "reviewed_at"
        ],
        "additionalProperties": false
      },
      "CoordinationTemplateCatalog": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationTemplateVariant"
            },
            "maxItems": 100
          },
          "drafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationTemplateDraft"
            },
            "maxItems": 100
          },
          "truncated": {
            "type": "boolean"
          },
          "pagination": {
            "type": "object",
            "properties": {
              "variant_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 2048
              },
              "draft_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 2048
              }
            },
            "required": [
              "variant_cursor",
              "draft_cursor"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "scope",
          "variants",
          "drafts",
          "truncated",
          "pagination"
        ],
        "additionalProperties": false
      },
      "CoordinationTemplatePreviewInput": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "variables": {
            "$ref": "#/components/schemas/Variables"
          },
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "key",
          "locale",
          "channel",
          "variables"
        ],
        "additionalProperties": false
      },
      "CoordinationMediaAsset": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://"
          },
          "alt": {
            "type": "string",
            "maxLength": 512
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "source_reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "url",
          "alt",
          "content_sha256",
          "source_reference",
          "expires_at",
          "revoked_at",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CoordinationMediaAssetResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://"
          },
          "alt": {
            "type": "string",
            "maxLength": 512
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "source_reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "alt",
          "content_sha256",
          "source_reference",
          "expires_at",
          "revoked_at",
          "created_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationMediaCatalog": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "assets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationMediaAsset"
            },
            "maxItems": 100
          },
          "pagination": {
            "type": "object",
            "properties": {
              "next_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 2048
              }
            },
            "required": [
              "next_cursor"
            ],
            "additionalProperties": false
          },
          "authority": {
            "const": "explicitly_reviewed_external_references_no_fetch"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "assets",
          "pagination",
          "authority",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationMediaRevocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "revoked": {
            "const": true
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "revoked",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationEvidence": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "observed_at": {
            "type": "string",
            "format": "date-time"
          },
          "facts": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          }
        },
        "required": [
          "id",
          "kind",
          "observed_at",
          "facts"
        ],
        "additionalProperties": false
      },
      "CoordinationFinding": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "statement": {
            "type": "string"
          },
          "evidence_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "certainty": {
            "type": "string",
            "enum": [
              "observed",
              "unknown"
            ]
          }
        },
        "required": [
          "code",
          "statement",
          "evidence_ids",
          "certainty"
        ],
        "additionalProperties": false
      },
      "CoordinationInvestigation": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "kind": {
            "type": "string",
            "enum": [
              "delivery",
              "setup",
              "cost"
            ]
          },
          "reference_id": {
            "type": "string",
            "format": "uuid"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationEvidence"
            }
          },
          "findings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationFinding"
            }
          },
          "automatic_action": {
            "const": false
          }
        },
        "required": [
          "scope",
          "kind",
          "reference_id",
          "as_of",
          "evidence",
          "findings",
          "automatic_action"
        ],
        "additionalProperties": false
      },
      "CoordinationWorkflowNode": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "next": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "type": {
                "const": "send"
              },
              "channel": {
                "type": "string",
                "enum": [
                  "email",
                  "push",
                  "sms",
                  "whatsapp"
                ]
              },
              "purpose": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "topic_key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "sender_id": {
                "type": "string",
                "format": "uuid"
              },
              "template_version_id": {
                "type": "string",
                "format": "uuid"
              },
              "fallback_from": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "max_cost_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "key",
              "type",
              "next",
              "channel",
              "purpose",
              "sender_id",
              "template_version_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "next": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "type": {
                "const": "wait"
              },
              "seconds": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2592000
              }
            },
            "required": [
              "key",
              "next",
              "type",
              "seconds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "next": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "type": {
                "const": "digest"
              },
              "seconds": {
                "type": "integer",
                "minimum": 1,
                "maximum": 86400
              },
              "variable": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "target_variable": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "max_items": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "key",
              "next",
              "type",
              "seconds",
              "variable",
              "target_variable",
              "max_items"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "next": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "type": {
                "const": "condition"
              },
              "field": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "equals": {
                "type": [
                  "string",
                  "boolean"
                ],
                "maxLength": 256
              },
              "otherwise": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              }
            },
            "required": [
              "key",
              "next",
              "type",
              "field",
              "equals",
              "otherwise"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "next": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "type": {
                "const": "frequency"
              },
              "seconds": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2592000
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "key",
              "next",
              "type",
              "seconds",
              "limit"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "next": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "type": {
                "const": "collapse"
              },
              "collapse_key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              }
            },
            "required": [
              "key",
              "next",
              "type",
              "collapse_key"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "type": {
                "const": "end"
              }
            },
            "required": [
              "key",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CoordinationWorkflowGraph": {
        "type": "object",
        "properties": {
          "schema_version": {
            "const": 1
          },
          "entry": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "quiet_hours": {
            "type": "object",
            "properties": {
              "start": {
                "type": "integer",
                "minimum": 0,
                "maximum": 23
              },
              "end": {
                "type": "integer",
                "minimum": 0,
                "maximum": 23
              }
            },
            "required": [
              "start",
              "end"
            ],
            "additionalProperties": false
          },
          "app_state": {
            "type": "object",
            "properties": {
              "required": {
                "type": "boolean"
              },
              "max_age_seconds": {
                "type": "integer",
                "minimum": 1,
                "maximum": 3600
              },
              "unavailable": {
                "type": "string",
                "enum": [
                  "defer",
                  "expire"
                ]
              },
              "completed_field": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              }
            },
            "required": [
              "required",
              "max_age_seconds",
              "unavailable",
              "completed_field"
            ],
            "additionalProperties": false
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationWorkflowNode"
            },
            "minItems": 1,
            "maxItems": 50
          }
        },
        "required": [
          "schema_version",
          "entry",
          "timezone",
          "app_state",
          "nodes"
        ],
        "additionalProperties": false
      },
      "CoordinationWorkflowSimulationContext": {
        "type": "object",
        "properties": {
          "now": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "content_expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_not_before": {
            "type": "string",
            "format": "date-time"
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "app_state_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "node_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "run_id": {
            "type": "string",
            "maxLength": 128
          },
          "steps": {
            "type": "object",
            "maxProperties": 50,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "entered_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "has_intent": {
                  "type": "boolean"
                },
                "intent_status": {
                  "type": "string",
                  "maxLength": 64
                },
                "fallback_status": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "required": [],
              "additionalProperties": false
            }
          },
          "windows": {
            "type": "object",
            "maxProperties": 50,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "window_started_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000
                },
                "latest_run_id": {
                  "type": "string",
                  "maxLength": 128
                },
                "latest_run_created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "window_started_at",
                "count"
              ],
              "additionalProperties": false
            }
          },
          "digests": {
            "type": "object",
            "maxProperties": 50,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "leader_run_id": {
                  "type": "string",
                  "maxLength": 128
                },
                "leader_status": {
                  "type": "string",
                  "maxLength": 128
                },
                "window_started_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "withdrawn": {
                        "type": "boolean"
                      },
                      "completed": {
                        "type": "boolean"
                      },
                      "expires_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "app_state_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "required": [
                      "value"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 100
                }
              },
              "required": [],
              "additionalProperties": false
            }
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "CoordinationWorkflowSimulation": {
        "type": "object",
        "properties": {
          "valid": {
            "const": true
          },
          "clock": {
            "type": "string",
            "format": "date-time"
          },
          "trace": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "type": {
                  "type": "string"
                },
                "result": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "stop",
                    "defer",
                    "advance",
                    "submit",
                    "digest_collect",
                    "digest_finalize"
                  ]
                },
                "due_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "next": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                }
              },
              "required": [
                "key",
                "type",
                "result",
                "action"
              ],
              "additionalProperties": false
            }
          },
          "provider_submissions": {
            "const": 0
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "valid",
          "clock",
          "trace",
          "provider_submissions",
          "limitations"
        ],
        "additionalProperties": false
      },
      "CoordinationTemplateDraftResult": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "definition": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 131072
            }
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
            },
            "maxItems": 64,
            "uniqueItems": true
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reference_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                "alt": {
                  "type": "string",
                  "maxLength": 512
                }
              },
              "required": [
                "reference_id",
                "url",
                "alt"
              ],
              "additionalProperties": false
            },
            "maxItems": 16
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "const": "draft"
          },
          "source": {
            "type": "string",
            "enum": [
              "human",
              "ai"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "locale",
          "channel",
          "definition",
          "variables",
          "media",
          "id",
          "status",
          "source",
          "created_at",
          "content_sha256",
          "request_id"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "email"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "subject": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "text": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "html": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "subject",
                    "text"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "push"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    },
                    "url": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "title",
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "sms"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "channel": {
                  "const": "whatsapp"
                }
              }
            },
            "then": {
              "properties": {
                "definition": {
                  "type": "object",
                  "properties": {
                    "body": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 131072
                    }
                  },
                  "required": [
                    "body"
                  ],
                  "additionalProperties": false
                },
                "media": {
                  "maxItems": 0
                }
              }
            }
          }
        ]
      },
      "CoordinationTemplateVariantResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "draft_id": {
            "type": "string",
            "format": "uuid"
          },
          "reviewed_by": {
            "type": "string",
            "format": "uuid"
          },
          "reviewed_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key",
          "locale",
          "channel",
          "template_version_id",
          "draft_id",
          "reviewed_by",
          "reviewed_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationTemplateCatalogResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationTemplateVariant"
            },
            "maxItems": 100
          },
          "drafts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationTemplateDraft"
            },
            "maxItems": 100
          },
          "truncated": {
            "type": "boolean"
          },
          "pagination": {
            "type": "object",
            "properties": {
              "variant_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 2048
              },
              "draft_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 2048
              }
            },
            "required": [
              "variant_cursor",
              "draft_cursor"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "variants",
          "drafts",
          "truncated",
          "pagination",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationInvestigationResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "kind": {
            "type": "string",
            "enum": [
              "delivery",
              "setup",
              "cost"
            ]
          },
          "reference_id": {
            "type": "string",
            "format": "uuid"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationEvidence"
            }
          },
          "findings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationFinding"
            }
          },
          "automatic_action": {
            "const": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "kind",
          "reference_id",
          "as_of",
          "evidence",
          "findings",
          "automatic_action",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationWorkflowSimulationResult": {
        "type": "object",
        "properties": {
          "valid": {
            "const": true
          },
          "clock": {
            "type": "string",
            "format": "date-time"
          },
          "trace": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "type": {
                  "type": "string"
                },
                "result": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "stop",
                    "defer",
                    "advance",
                    "submit",
                    "digest_collect",
                    "digest_finalize"
                  ]
                },
                "due_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "next": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                }
              },
              "required": [
                "key",
                "type",
                "result",
                "action"
              ],
              "additionalProperties": false
            }
          },
          "provider_submissions": {
            "const": 0
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "valid",
          "clock",
          "trace",
          "provider_submissions",
          "limitations",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EmailTemplateVersion": {
        "type": "object",
        "properties": {
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 35,
                "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
              },
              {
                "type": "null"
              }
            ]
          },
          "channel": {
            "const": "email"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "template_version_id",
          "key",
          "locale",
          "channel",
          "version",
          "published_at",
          "archived_at"
        ],
        "additionalProperties": false
      },
      "EmailTemplateVersionResult": {
        "type": "object",
        "properties": {
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 35,
                "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
              },
              {
                "type": "null"
              }
            ]
          },
          "channel": {
            "const": "email"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "definition": {
            "type": "object",
            "properties": {
              "subject": {
                "type": "string",
                "minLength": 1,
                "maxLength": 131072
              },
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 131072
              },
              "html": {
                "type": "string",
                "minLength": 1,
                "maxLength": 131072
              }
            },
            "required": [
              "subject",
              "text"
            ],
            "additionalProperties": false
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
            },
            "maxItems": 64,
            "uniqueItems": true
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "template_version_id",
          "key",
          "locale",
          "channel",
          "version",
          "published_at",
          "archived_at",
          "definition",
          "variables",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EmailTemplateVersionArchive": {
        "type": "object",
        "properties": {
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 35,
                "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
              },
              {
                "type": "null"
              }
            ]
          },
          "channel": {
            "const": "email"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "template_version_id",
          "key",
          "locale",
          "channel",
          "version",
          "published_at",
          "archived_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EmailTemplateVersions": {
        "type": "object",
        "properties": {
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailTemplateVersion"
            },
            "maxItems": 100
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2048
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "versions",
          "next_cursor",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EmailTemplateDraftReview": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "definition": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 131072
            }
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
            },
            "maxItems": 64,
            "uniqueItems": true
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reference_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                "alt": {
                  "type": "string",
                  "maxLength": 512
                }
              },
              "required": [
                "reference_id",
                "url",
                "alt"
              ],
              "additionalProperties": false
            },
            "maxItems": 16
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "const": "draft"
          },
          "source": {
            "type": "string",
            "enum": [
              "human",
              "ai"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "authored_by_current_actor": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "locale",
          "channel",
          "definition",
          "variables",
          "media",
          "id",
          "status",
          "source",
          "created_at",
          "content_sha256",
          "authored_by_current_actor",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EmailTemplateDraftPreview": {
        "type": "object",
        "properties": {
          "draft_id": {
            "type": "string",
            "format": "uuid"
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "rendered": {
            "$ref": "#/components/schemas/RenderedEmail"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "draft_id",
          "content_sha256",
          "rendered",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EmailTemplateVersionPreview": {
        "type": "object",
        "properties": {
          "rendered": {
            "$ref": "#/components/schemas/RenderedEmail"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "rendered",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationWorkflowStep": {
        "type": "object",
        "properties": {
          "node_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "intent_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "entered_at": {
            "type": "string",
            "format": "date-time"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "type": "string"
          }
        },
        "required": [
          "node_key",
          "intent_id",
          "entered_at",
          "completed_at",
          "outcome"
        ],
        "additionalProperties": false
      },
      "CoordinationWorkflowRun": {
        "type": "object",
        "properties": {
          "run_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "coalesced",
              "completed",
              "cancelled",
              "expired",
              "blocked"
            ]
          },
          "node_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "generation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "app_state_revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationWorkflowStep"
            }
          },
          "replayed": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "run_id",
          "workflow_version_id",
          "status",
          "node_key",
          "due_at",
          "generation",
          "expires_at",
          "app_state_revision",
          "steps",
          "request_id"
        ],
        "additionalProperties": false
      },
      "StartWorkflowRun": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "variables": {
            "$ref": "#/components/schemas/Variables"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "scope",
          "workflow_version_id",
          "recipient_id",
          "variables",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "WorkflowApplicationState": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "state": {
            "type": "object",
            "maxProperties": 20,
            "propertyNames": {
              "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
            },
            "additionalProperties": {
              "type": [
                "string",
                "boolean"
              ],
              "maxLength": 256
            }
          }
        },
        "required": [
          "revision",
          "state"
        ],
        "additionalProperties": false
      },
      "CoordinationTemplatePreview": {
        "type": "object",
        "properties": {
          "template_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "rendered": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RenderedEmail"
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "template_version_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "title",
                  "body",
                  "template_version_id"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "template_version_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "required": [
                  "kind",
                  "body",
                  "template_version_id"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "const": "template"
                  },
                  "body": {
                    "type": "string"
                  },
                  "template_version_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "variables": {
                    "$ref": "#/components/schemas/Variables"
                  }
                },
                "required": [
                  "kind",
                  "body",
                  "template_version_id",
                  "variables"
                ],
                "additionalProperties": false
              }
            ]
          },
          "content_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "segmentation": {
            "type": "object",
            "properties": {
              "encoding": {
                "type": "string",
                "enum": [
                  "GSM-7",
                  "UCS-2"
                ]
              },
              "units": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "segments": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "characters": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "single_capacity": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "multipart_capacity": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "encoding",
              "units",
              "segments",
              "characters",
              "single_capacity",
              "multipart_capacity"
            ],
            "additionalProperties": false
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reference_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                "alt": {
                  "type": "string",
                  "maxLength": 512
                }
              },
              "required": [
                "reference_id",
                "url",
                "alt"
              ],
              "additionalProperties": false
            },
            "maxItems": 16
          },
          "dispatch_rechecks_required": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "template_version_id",
          "locale",
          "channel",
          "rendered",
          "content_sha256",
          "media",
          "dispatch_rechecks_required",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationAiAccounting": {
        "type": "object",
        "properties": {
          "allowance_basis": {
            "const": "conservative_ceiling"
          },
          "accounted_ceiling_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "actual_provider_usage": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "input_tokens": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "output_tokens": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "rated_cost_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "const": "USD"
                  },
                  "rate_reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "cost_basis": {
                    "const": "configured_uncached_rates"
                  },
                  "invoice_reconciled": {
                    "const": false
                  }
                },
                "required": [
                  "input_tokens",
                  "output_tokens",
                  "rated_cost_microunits",
                  "currency",
                  "rate_reference",
                  "cost_basis",
                  "invoice_reconciled"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_billed": {
            "const": false
          }
        },
        "required": [
          "allowance_basis",
          "accounted_ceiling_microunits",
          "actual_provider_usage",
          "customer_billed"
        ],
        "additionalProperties": false
      },
      "CoordinationAiDraft": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "pending",
              "uncertain",
              "invalid_draft"
            ]
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "citation_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "provider_id": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "review_required": {
            "const": true
          },
          "automatic_action": {
            "const": false
          },
          "replayed": {
            "type": "boolean"
          },
          "accounted_ceiling_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "accounting": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CoordinationAiAccounting"
              },
              {
                "type": "null"
              }
            ]
          },
          "validation_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "protected_fact_changes": {
            "type": "object",
            "properties": {
              "missing": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "added": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "missing",
              "added"
            ],
            "additionalProperties": false
          },
          "template_draft": {
            "$ref": "#/components/schemas/CoordinationTemplateDraft"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "state",
          "text",
          "citation_ids",
          "provider_id",
          "model_id",
          "review_required",
          "automatic_action",
          "replayed",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationAiDraftInventory": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "drafts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "delivery",
                    "setup",
                    "cost",
                    "template"
                  ]
                },
                "reference_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "pending",
                    "uncertain",
                    "invalid_draft"
                  ]
                },
                "text": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "citation_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "provider_id": {
                  "type": "string"
                },
                "model_id": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "review_required": {
                  "const": true
                },
                "automatic_action": {
                  "const": false
                },
                "validation_error": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "kind",
                "reference_id",
                "state",
                "text",
                "citation_ids",
                "provider_id",
                "model_id",
                "created_at",
                "review_required",
                "automatic_action"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "truncated": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "drafts",
          "truncated",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphDraft": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "definition": {
            "$ref": "#/components/schemas/CoordinationWorkflowGraph"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "reviewed_at": {
            "type": "null"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflow_key",
          "definition",
          "fingerprint",
          "reviewed_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphReview": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "reviewed": {
            "const": true
          },
          "reviewed_at": {
            "type": "string",
            "format": "date-time"
          },
          "reviewed_by": {
            "type": "string",
            "format": "uuid"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "fingerprint",
          "reviewed",
          "reviewed_at",
          "reviewed_by",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphPublished": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "definition": {
            "$ref": "#/components/schemas/CoordinationWorkflowGraph"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflow_version_id",
          "workflow_key",
          "version",
          "definition",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphControl": {
        "type": "object",
        "properties": {
          "workflow_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "disabled": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "workflow_key",
          "disabled",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphInventory": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "workflows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "workflow_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "disabled": {
                  "type": "boolean"
                },
                "live_version_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "workflow_key",
                "disabled",
                "live_version_id"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "workflow_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "definition": {
                  "$ref": "#/components/schemas/CoordinationWorkflowGraph"
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "workflow_key",
                "version",
                "definition",
                "published_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "drafts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "workflow_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "definition": {
                  "$ref": "#/components/schemas/CoordinationWorkflowGraph"
                },
                "fingerprint": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "reviewed_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reviewed_by": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "published_version_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "workflow_key",
                "definition",
                "fingerprint",
                "reviewed_at",
                "reviewed_by",
                "published_version_id",
                "created_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "runs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "workflow_version_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "running",
                    "coalesced",
                    "completed",
                    "cancelled",
                    "expired",
                    "blocked"
                  ]
                },
                "node_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "due_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "generation": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "workflow_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "id",
                "workflow_version_id",
                "status",
                "node_key",
                "due_at",
                "generation",
                "expires_at",
                "created_at",
                "workflow_key",
                "version"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "request_id": {
            "type": "string"
          },
          "filters": {
            "type": "object",
            "properties": {
              "search": {
                "type": "string",
                "maxLength": 128
              },
              "workflow_key": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "search",
              "workflow_key"
            ],
            "additionalProperties": false
          },
          "live_versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "workflow_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "definition": {
                  "$ref": "#/components/schemas/CoordinationWorkflowGraph"
                },
                "published_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "workflow_key",
                "version",
                "definition",
                "published_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "live_versions_truncated": {
            "type": "boolean"
          },
          "pagination": {
            "type": "object",
            "properties": {
              "workflows": {
                "type": "object",
                "properties": {
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2048
                  }
                },
                "required": [
                  "next_cursor"
                ],
                "additionalProperties": false
              },
              "versions": {
                "type": "object",
                "properties": {
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2048
                  }
                },
                "required": [
                  "next_cursor"
                ],
                "additionalProperties": false
              },
              "drafts": {
                "type": "object",
                "properties": {
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2048
                  }
                },
                "required": [
                  "next_cursor"
                ],
                "additionalProperties": false
              },
              "runs": {
                "type": "object",
                "properties": {
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "maxLength": 2048
                  }
                },
                "required": [
                  "next_cursor"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "workflows",
              "versions",
              "drafts",
              "runs"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "scope",
          "workflows",
          "versions",
          "drafts",
          "runs",
          "limit",
          "request_id",
          "filters",
          "live_versions",
          "live_versions_truncated",
          "pagination"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphVersionDetail": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "version": {
            "type": "object",
            "properties": {
              "organization_id": {
                "type": "string",
                "format": "uuid"
              },
              "application_id": {
                "type": "string",
                "format": "uuid"
              },
              "environment": {
                "type": "string",
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "brand_id": {
                "type": "string",
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "workflow_key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "definition": {
                "$ref": "#/components/schemas/CoordinationWorkflowGraph"
              },
              "published_at": {
                "type": "string",
                "format": "date-time"
              },
              "status": {
                "const": "published"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "organization_id",
              "application_id",
              "environment",
              "brand_id",
              "id",
              "workflow_key",
              "version",
              "definition",
              "published_at",
              "status",
              "created_at"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "version",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphDraftDetail": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "draft": {
            "type": "object",
            "properties": {
              "organization_id": {
                "type": "string",
                "format": "uuid"
              },
              "application_id": {
                "type": "string",
                "format": "uuid"
              },
              "environment": {
                "type": "string",
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "brand_id": {
                "type": "string",
                "format": "uuid"
              },
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "workflow_key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "definition": {
                "$ref": "#/components/schemas/CoordinationWorkflowGraph"
              },
              "fingerprint": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "reviewed_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewed_by": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "published_version_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "created_by": {
                "type": "string",
                "format": "uuid"
              }
            },
            "required": [
              "organization_id",
              "application_id",
              "environment",
              "brand_id",
              "id",
              "workflow_key",
              "definition",
              "fingerprint",
              "reviewed_at",
              "reviewed_by",
              "published_version_id",
              "created_at",
              "created_by"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "draft",
          "request_id"
        ],
        "additionalProperties": false
      },
      "WorkflowGraphRunDetail": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "run": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "workflow_version_id": {
                "type": "string",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "enum": [
                  "running",
                  "coalesced",
                  "completed",
                  "cancelled",
                  "expired",
                  "blocked"
                ]
              },
              "node_key": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
              },
              "due_at": {
                "type": "string",
                "format": "date-time"
              },
              "generation": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "scheduled_not_before": {
                "type": "string",
                "format": "date-time"
              },
              "app_state_revision": {
                "oneOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^[0-9]+$"
                  }
                ]
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "workflow_version_id",
              "status",
              "node_key",
              "due_at",
              "generation",
              "expires_at",
              "created_at",
              "scheduled_not_before",
              "app_state_revision",
              "updated_at"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "run",
          "request_id"
        ],
        "additionalProperties": false
      },
      "VersionCatalog": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "version": {
                  "type": "integer",
                  "minimum": 1
                },
                "template_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "push",
                    "sms",
                    "whatsapp"
                  ]
                }
              },
              "required": [
                "id",
                "version",
                "template_key",
                "channel"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "workflows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "version": {
                  "type": "integer",
                  "minimum": 1
                },
                "workflow_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                }
              },
              "required": [
                "id",
                "version",
                "workflow_key"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "senders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "push",
                    "sms",
                    "whatsapp"
                  ]
                },
                "identity": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 320
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "disabled"
                  ]
                },
                "verified_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "allowed_purposes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1
                }
              },
              "required": [
                "id",
                "channel",
                "identity",
                "status",
                "verified_at",
                "allowed_purposes"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "truncated": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "templates",
          "workflows",
          "senders",
          "truncated",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EmailBrandProfileResult": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "can_manage": {
            "type": "boolean"
          },
          "logo_upload_available": {
            "type": "boolean"
          },
          "profile": {
            "type": "object",
            "properties": {
              "product_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 1024
              },
              "preferences_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 1024
              },
              "privacy_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 1024
              },
              "terms_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 1024
              },
              "logo_light_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 1024
              },
              "logo_dark_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 1024
              },
              "logo_icon_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 1024
              },
              "primary_color": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{6}$"
              },
              "accent_color": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{6}$"
              },
              "background_color": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{6}$"
              },
              "text_color": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{6}$"
              },
              "legal_name": {
                "type": "string",
                "maxLength": 180
              },
              "postal_address": {
                "type": "string",
                "maxLength": 600
              },
              "support_email": {
                "type": "string",
                "format": "email"
              },
              "reply_to_email": {
                "type": "string",
                "format": "email"
              },
              "heading_font": {
                "type": "string",
                "enum": [
                  "serif",
                  "book",
                  "sans",
                  "human",
                  "geometric",
                  "mono"
                ]
              },
              "body_font": {
                "type": "string",
                "enum": [
                  "serif",
                  "book",
                  "sans",
                  "human",
                  "geometric",
                  "mono"
                ]
              },
              "theme": {
                "type": "string",
                "enum": [
                  "editorial",
                  "saas",
                  "ledger",
                  "mono",
                  "commerce",
                  "ops"
                ]
              },
              "locale": {
                "type": "string",
                "minLength": 2,
                "maxLength": 35,
                "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
              },
              "direction": {
                "type": "string",
                "enum": [
                  "ltr",
                  "rtl"
                ]
              },
              "social_links": {
                "type": "object",
                "properties": {
                  "linkedin": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 1024
                  },
                  "instagram": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 1024
                  },
                  "mastodon": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 1024
                  },
                  "youtube": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 1024
                  },
                  "github": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 1024
                  },
                  "facebook": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 1024
                  },
                  "bluesky": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://",
                    "maxLength": 1024
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "category_themes": {
                "type": "object",
                "properties": {
                  "auth": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "lifecycle": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "billing": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "workflow": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "support": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "scheduling": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "operational": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  },
                  "marketing": {
                    "type": "string",
                    "enum": [
                      "editorial",
                      "saas",
                      "ledger",
                      "mono",
                      "commerce",
                      "ops"
                    ]
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "slug"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "revision",
          "can_manage",
          "logo_upload_available",
          "profile",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BrandedEmailCatalog": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "release": {
            "type": "string",
            "maxLength": 64
          },
          "themes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "description"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "editorial",
                    "saas",
                    "ledger",
                    "mono",
                    "commerce",
                    "ops"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "auth",
                    "lifecycle",
                    "billing",
                    "workflow",
                    "support",
                    "scheduling",
                    "operational",
                    "marketing"
                  ]
                },
                "purpose": {
                  "type": "string",
                  "enum": [
                    "transactional",
                    "marketing"
                  ]
                },
                "classification": {
                  "type": "string",
                  "enum": [
                    "auth",
                    "security",
                    "transactional",
                    "operational",
                    "marketing"
                  ]
                },
                "channel": {
                  "const": "email"
                },
                "variants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "description"
                    ],
                    "additionalProperties": false
                  }
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "text",
                          "amount",
                          "date",
                          "code",
                          "relative_url"
                        ]
                      },
                      "required": {
                        "const": true
                      },
                      "sample": {
                        "type": "string"
                      },
                      "protected": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "name",
                      "type",
                      "required",
                      "sample",
                      "protected"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "key",
                "name",
                "description",
                "category",
                "purpose",
                "classification",
                "channel",
                "variants",
                "variables"
              ],
              "additionalProperties": false
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "release",
          "themes",
          "templates",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BrandedEmailPreview": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "catalog_release": {
            "type": "string",
            "maxLength": 64
          },
          "brand_revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "theme": {
            "type": "string",
            "enum": [
              "editorial",
              "saas",
              "ledger",
              "mono",
              "commerce",
              "ops"
            ]
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "direction": {
            "type": "string",
            "enum": [
              "ltr",
              "rtl"
            ]
          },
          "subject": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "preheader": {
            "type": "string"
          },
          "definition": {
            "type": "object",
            "properties": {
              "subject": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "html": {
                "type": "string"
              }
            },
            "required": [
              "subject",
              "text",
              "html"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "catalog_release",
          "brand_revision",
          "theme",
          "locale",
          "direction",
          "subject",
          "text",
          "html",
          "preheader",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BrandedEmailInstall": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "draft": {
            "$ref": "#/components/schemas/CoordinationTemplateDraft"
          },
          "draft_id": {
            "type": "string",
            "format": "uuid"
          },
          "catalog_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "catalog_release": {
            "type": "string",
            "maxLength": 64
          },
          "variant": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "theme": {
            "type": "string",
            "enum": [
              "editorial",
              "saas",
              "ledger",
              "mono",
              "commerce",
              "ops"
            ]
          },
          "locale": {
            "type": "string",
            "minLength": 2,
            "maxLength": 35,
            "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
          },
          "brand_revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "purpose": {
            "type": "string",
            "enum": [
              "transactional",
              "marketing"
            ]
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "text",
                    "amount",
                    "date",
                    "code",
                    "relative_url"
                  ]
                },
                "required": {
                  "const": true
                },
                "sample": {
                  "type": "string"
                },
                "protected": {
                  "type": "boolean"
                }
              },
              "required": [
                "name",
                "type",
                "required",
                "sample",
                "protected"
              ],
              "additionalProperties": false
            }
          },
          "upgrade_from_draft_id": {
            "type": "string",
            "format": "uuid"
          },
          "installed_at": {
            "type": "string",
            "format": "date-time"
          },
          "template_version_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "update_available": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "draft",
          "draft_id",
          "catalog_key",
          "catalog_release",
          "variant",
          "theme",
          "locale",
          "brand_revision",
          "purpose",
          "variables",
          "installed_at",
          "template_version_id",
          "update_available",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BrandedEmailInstalls": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "installs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "draft_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "catalog_key": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "catalog_release": {
                  "type": "string",
                  "maxLength": 64
                },
                "variant": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                },
                "theme": {
                  "type": "string",
                  "enum": [
                    "editorial",
                    "saas",
                    "ledger",
                    "mono",
                    "commerce",
                    "ops"
                  ]
                },
                "locale": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 35,
                  "description": "Canonical BCP-47 locale; exact locale selection, without implicit fallback."
                },
                "brand_revision": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "purpose": {
                  "type": "string",
                  "enum": [
                    "transactional",
                    "marketing"
                  ]
                },
                "variables": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "text",
                          "amount",
                          "date",
                          "code",
                          "relative_url"
                        ]
                      },
                      "required": {
                        "const": true
                      },
                      "sample": {
                        "type": "string"
                      },
                      "protected": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "name",
                      "type",
                      "required",
                      "sample",
                      "protected"
                    ],
                    "additionalProperties": false
                  }
                },
                "upgrade_from_draft_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "installed_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "template_version_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "update_available": {
                  "type": "boolean"
                }
              },
              "required": [
                "draft_id",
                "catalog_key",
                "catalog_release",
                "variant",
                "theme",
                "locale",
                "brand_revision",
                "purpose",
                "variables",
                "installed_at",
                "template_version_id",
                "update_available"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "installs",
          "next_cursor",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BrandLogoUpload": {
        "type": "object",
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/CoordinationMediaAsset"
          },
          "width": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "height": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "content_type": {
            "const": "image/png"
          },
          "byte_size": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "asset",
          "width",
          "height",
          "content_type",
          "byte_size",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationIncident": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "investigating",
              "resolved"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "channel": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "email",
                  "push",
                  "sms",
                  "whatsapp"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sender_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "paused": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "answerridge_case_reference": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "title",
          "status",
          "severity",
          "channel",
          "sender_id",
          "paused",
          "version",
          "answerridge_case_reference",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "CoordinationIncidentResult": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "investigating",
              "resolved"
            ]
          },
          "severity": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "channel": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "email",
                  "push",
                  "sms",
                  "whatsapp"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "sender_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "paused": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "answerridge_case_reference": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_by": {
            "type": "string",
            "format": "uuid"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "organization_id",
          "application_id",
          "environment",
          "brand_id",
          "id",
          "title",
          "status",
          "severity",
          "channel",
          "sender_id",
          "paused",
          "version",
          "answerridge_case_reference",
          "updated_at",
          "created_by",
          "created_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationHealth": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "measured_at": {
            "type": "string",
            "format": "date-time"
          },
          "queues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "lane": {
                  "type": "string"
                },
                "pending": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "due": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "oldest_due_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "uncertain": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "lane",
                "pending",
                "due",
                "oldest_due_at",
                "uncertain"
              ],
              "additionalProperties": false
            }
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "provider": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "readiness": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "provider",
                "status",
                "readiness"
              ],
              "additionalProperties": false
            }
          },
          "uncertainty": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "status": {
                  "$ref": "#/components/schemas/DeliveryStatus"
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "push",
                    "sms",
                    "whatsapp"
                  ]
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "status",
                "channel",
                "updated_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "incidents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationIncident"
            },
            "maxItems": 100
          },
          "data_ai": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "content_retention_days": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "raw_retention_days": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "diagnostic_consent": {
                    "type": "boolean"
                  },
                  "ai_enabled": {
                    "type": "boolean"
                  },
                  "configuration_version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "content_retention_days",
                  "raw_retention_days",
                  "diagnostic_consent",
                  "ai_enabled",
                  "configuration_version",
                  "updated_at"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "notifications": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "incident_alerts": {
                    "type": "boolean"
                  },
                  "budget_alerts": {
                    "type": "boolean"
                  },
                  "delivery_failures": {
                    "type": "boolean"
                  },
                  "weekly_summary": {
                    "type": "boolean"
                  },
                  "configuration_version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "incident_alerts",
                  "budget_alerts",
                  "delivery_failures",
                  "weekly_summary",
                  "configuration_version"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "alerts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "delivered",
                    "failed"
                  ]
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "oldest_due_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "state",
                "count",
                "oldest_due_at"
              ],
              "additionalProperties": false
            }
          },
          "limits": {
            "type": "object",
            "properties": {
              "uncertainty": {
                "const": 100
              },
              "incidents": {
                "const": 100
              }
            },
            "required": [
              "uncertainty",
              "incidents"
            ],
            "additionalProperties": false
          },
          "evidence": {
            "const": "authoritative_database_snapshot"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "measured_at",
          "queues",
          "providers",
          "uncertainty",
          "incidents",
          "data_ai",
          "notifications",
          "alerts",
          "limits",
          "evidence",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationIncidents": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "incidents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationIncident"
            },
            "maxItems": 100
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "incidents",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationDestination": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "external_webhook",
              "independent_pager",
              "answerridge_case"
            ]
          },
          "reference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "reference",
          "status"
        ],
        "additionalProperties": false
      },
      "CoordinationDestinationResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "external_webhook",
              "independent_pager",
              "answerridge_case"
            ]
          },
          "reference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:/-]{1,128}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "kind",
          "reference",
          "status",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationDestinations": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationDestination"
            }
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "destinations",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationSupportGrant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "user_id": {
            "type": "string",
            "format": "uuid"
          },
          "intent_id": {
            "type": "string",
            "format": "uuid"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "user_id",
          "intent_id",
          "expires_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationSupportRevocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "revoked_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "revoked_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationSupportContext": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "message": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "channel": {
                "type": "string",
                "enum": [
                  "email",
                  "push",
                  "sms",
                  "whatsapp"
                ]
              },
              "purpose": {
                "type": "string"
              },
              "status": {
                "$ref": "#/components/schemas/DeliveryStatus"
              },
              "request_id": {
                "type": "string"
              },
              "accepted_at": {
                "type": "string",
                "format": "date-time"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "channel",
              "purpose",
              "status",
              "request_id",
              "accepted_at",
              "updated_at"
            ],
            "additionalProperties": false
          },
          "content": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "access": {
                    "type": "string",
                    "enum": [
                      "redacted",
                      "expired"
                    ]
                  }
                },
                "required": [
                  "access"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "access": {
                    "const": "available"
                  },
                  "snapshot": {
                    "type": "object",
                    "additionalProperties": true
                  }
                },
                "required": [
                  "access",
                  "snapshot"
                ],
                "additionalProperties": false
              }
            ]
          },
          "business_authority": {
            "const": "owning_application"
          },
          "may_resend": {
            "const": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "message",
          "content",
          "business_authority",
          "may_resend",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationReconciliation": {
        "type": "object",
        "properties": {
          "intent_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/DeliveryStatus"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "held_without_new_verified_evidence",
              "verified_original_events_projected"
            ]
          },
          "projected_events": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "resend": {
            "const": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "intent_id",
          "outcome",
          "projected_events",
          "resend",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationUsageFilter": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "channel": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "email",
                  "push",
                  "sms",
                  "whatsapp"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z]{3}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "from",
          "to",
          "channel",
          "currency"
        ],
        "additionalProperties": false
      },
      "CoordinationUsage": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "measured_at": {
            "type": "string",
            "format": "date-time"
          },
          "filters": {
            "$ref": "#/components/schemas/CoordinationUsageFilter"
          },
          "summary": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "settled_provider_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "external_provider_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "platform_provider_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "invoice_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "pending_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "currency",
                "settled_provider_microunits",
                "external_provider_microunits",
                "platform_provider_microunits",
                "invoice_microunits",
                "pending_microunits"
              ],
              "additionalProperties": false
            }
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "message_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "push",
                    "sms",
                    "whatsapp"
                  ]
                },
                "provider_connection_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "source_reference": {
                  "type": "string"
                },
                "rate_version_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "provider_cost_microunits": {
                  "type": "string",
                  "pattern": "^[0-9]+$"
                },
                "billing_ownership": {
                  "type": "string"
                },
                "invoice_eligible": {
                  "type": "boolean"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "message_id",
                "channel",
                "provider_connection_id",
                "source_reference",
                "rate_version_id",
                "currency",
                "provider_cost_microunits",
                "billing_ownership",
                "invoice_eligible",
                "created_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "reservations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "intent_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "rate_version_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "amount_microunits": {
                  "type": "string",
                  "pattern": "^[0-9]+$"
                },
                "status": {
                  "$ref": "#/components/schemas/DeliveryStatus"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "intent_id",
                "currency",
                "rate_version_id",
                "amount_microunits",
                "status",
                "created_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "pagination": {
            "type": "object",
            "properties": {
              "next_cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "next_cursor"
            ],
            "additionalProperties": false
          },
          "unit_scale": {
            "const": 1000000
          },
          "fx_conversion": {
            "const": false
          },
          "pending_basis": {
            "const": "outstanding_budget_holds_non_additive_to_costs"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "measured_at",
          "filters",
          "summary",
          "records",
          "reservations",
          "pagination",
          "unit_scale",
          "fx_conversion",
          "pending_basis",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationUsageExport": {
        "type": "object",
        "properties": {
          "format": {
            "const": "csv"
          },
          "filename": {
            "const": "valosend-usage.csv"
          },
          "content": {
            "type": "string"
          },
          "row_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "filters": {
            "$ref": "#/components/schemas/CoordinationUsageFilter"
          },
          "unit_scale": {
            "const": 1000000
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "format",
          "filename",
          "content",
          "row_count",
          "filters",
          "unit_scale",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationInvoicePreview": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "amount_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "cost_record_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "amount_microunits": {
                        "type": "string",
                        "pattern": "^[0-9]+$"
                      },
                      "invoice_reference": {
                        "type": "string"
                      },
                      "rate_version_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "message_id": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "required": [
                      "id",
                      "cost_record_id",
                      "currency",
                      "amount_microunits",
                      "invoice_reference",
                      "rate_version_id",
                      "message_id"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 10000
                }
              },
              "required": [
                "currency",
                "amount_microunits",
                "lines"
              ],
              "additionalProperties": false
            }
          },
          "pending_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "external_billing": {
            "const": true
          },
          "pricing_status": {
            "const": "recorded_invoice_lines_only"
          },
          "unit_scale": {
            "const": 1000000
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "currencies",
          "pending_count",
          "external_billing",
          "pricing_status",
          "unit_scale",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationUserNotification": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "incident_alerts",
              "budget_alerts",
              "delivery_failures",
              "weekly_summary"
            ]
          },
          "source_key": {
            "type": "string"
          },
          "summary": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "incident_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "severity": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "incident_id",
                  "severity",
                  "status",
                  "version"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "budget_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "threshold_percent": {
                    "enum": [
                      70,
                      90
                    ]
                  },
                  "limit_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "committed_microunits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "budget_id",
                  "currency",
                  "threshold_percent",
                  "limit_microunits",
                  "committed_microunits"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "message_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "email",
                      "push",
                      "sms",
                      "whatsapp"
                    ]
                  },
                  "status": {
                    "$ref": "#/components/schemas/DeliveryStatus"
                  }
                },
                "required": [
                  "message_id",
                  "channel",
                  "status"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "week_start": {
                    "type": "string",
                    "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "accepted": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "failed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "week_start",
                  "timezone",
                  "accepted",
                  "failed"
                ],
                "additionalProperties": false
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "read_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "source_key",
          "summary",
          "created_at",
          "read_at"
        ],
        "additionalProperties": false
      },
      "CoordinationNotifications": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "channel": {
            "const": "console_inbox"
          },
          "notifications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationUserNotification"
            },
            "maxItems": 100
          },
          "pagination": {
            "type": "object",
            "properties": {
              "next_cursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "next_cursor"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "channel",
          "notifications",
          "pagination",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationNotificationRead": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "read_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "read_at",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationCase": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "incident_id": {
            "type": "string",
            "format": "uuid"
          },
          "incident_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "destination_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "delivered",
              "failed"
            ]
          },
          "attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "acknowledged_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "case_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "acknowledged_version": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "last_error_code": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "delivery_failed",
                  "acknowledgement_mismatch"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "incident_id",
          "incident_version",
          "destination_id",
          "state",
          "attempts",
          "due_at",
          "acknowledged_at",
          "case_id",
          "acknowledged_version",
          "last_error_code"
        ],
        "additionalProperties": false
      },
      "CoordinationCases": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "cases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoordinationCase"
            },
            "maxItems": 100
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "cases",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CoordinationCaseRetry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "const": "pending"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "state",
          "request_id"
        ],
        "additionalProperties": false
      },
      "PreparedAgentActionRaw": {
        "type": "object",
        "properties": {
          "preparation_id": {
            "type": "string",
            "format": "uuid"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "task_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "executable": {
            "type": "boolean"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "quote": {
            "type": "object",
            "properties": {
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "amount_microunits",
              "currency"
            ],
            "additionalProperties": false
          },
          "message": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DirectMessageRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "response_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "next_action": {
            "type": "string",
            "enum": [
              "execute_prepared",
              "request_authority",
              "get_operation",
              "prepare_new_action"
            ]
          },
          "push_preview": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PushPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "sms_preview": {
            "$ref": "#/components/schemas/SmsQuote"
          },
          "whatsapp_preview": {
            "$ref": "#/components/schemas/WhatsAppQuote"
          }
        },
        "required": [
          "preparation_id",
          "principal_id",
          "grant_id",
          "task_id",
          "action_id",
          "fingerprint",
          "executable",
          "expires_at",
          "quote",
          "message",
          "response_url",
          "replayed",
          "next_action"
        ],
        "additionalProperties": false
      },
      "AgentCapabilitiesRaw": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "grants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentGrant"
            }
          },
          "senders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "identity": {
                  "type": "string"
                },
                "channel": {
                  "type": "string"
                },
                "ready": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "identity",
                "channel",
                "ready"
              ],
              "additionalProperties": false
            }
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "external_id": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "external_id"
              ],
              "additionalProperties": false
            }
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "template_key": {
                  "type": "string"
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "channel": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "template_key",
                "version",
                "channel"
              ],
              "additionalProperties": false
            }
          },
          "structured_responses": {
            "type": "boolean"
          },
          "supported_channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "email",
                "push",
                "sms",
                "whatsapp"
              ]
            }
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "scope",
          "principal_id",
          "grants",
          "senders",
          "recipients",
          "templates",
          "structured_responses",
          "supported_channels",
          "as_of"
        ],
        "additionalProperties": false
      },
      "AgentOperationRaw": {
        "type": "object",
        "properties": {
          "operation_id": {
            "type": "string",
            "format": "uuid"
          },
          "principal_id": {
            "type": "string",
            "format": "uuid"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "task_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "parent_action_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "delivery_status": {
            "type": "string",
            "enum": [
              "prepared",
              "preparation_expired",
              "accepted",
              "submitting",
              "uncertain",
              "provider_accepted",
              "delivered",
              "failed",
              "blocked",
              "expired",
              "cancelled"
            ]
          },
          "response_status": {
            "type": "string",
            "enum": [
              "not_requested",
              "awaiting_response",
              "responded",
              "expired",
              "not_sent"
            ]
          },
          "business_authorization": {
            "const": false
          },
          "response": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "actor_user_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "aal": {
                    "type": "string",
                    "enum": [
                      "aal1",
                      "aal2"
                    ]
                  },
                  "answered_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "answer": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "actor_user_id",
                  "aal",
                  "answered_at",
                  "answer"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "provider_accepted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cost": {
            "type": "object",
            "properties": {
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "amount_microunits",
              "currency"
            ],
            "additionalProperties": false
          },
          "next_action": {
            "type": "string",
            "enum": [
              "execute_prepared",
              "wait_for_delivery",
              "reconcile",
              "wait_for_response",
              "check_application_policy",
              "none"
            ]
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "operation_id",
          "principal_id",
          "grant_id",
          "task_id",
          "action_id",
          "parent_action_id",
          "message_id",
          "delivery_status",
          "response_status",
          "business_authorization",
          "response",
          "accepted_at",
          "provider_accepted_at",
          "delivered_at",
          "cost",
          "next_action"
        ],
        "additionalProperties": false
      },
      "AgentCancellationRaw": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "enum": [
              "cancelled",
              "already_submitted",
              "uncertain",
              "already_terminal",
              "not_sent"
            ]
          },
          "operation": {
            "$ref": "#/components/schemas/AgentOperationData"
          }
        },
        "required": [
          "outcome",
          "operation"
        ],
        "additionalProperties": false
      },
      "AgentEventsRaw": {
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "event_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "event_type": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "generation": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "attempt_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "operation_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "task_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                },
                "action_id": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                },
                "message_id": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "required": [
                "event_id",
                "event_type",
                "state",
                "generation",
                "attempt_count",
                "created_at",
                "operation_id",
                "task_id",
                "action_id",
                "message_id"
              ],
              "additionalProperties": false
            },
            "maxItems": 50
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          }
        },
        "required": [
          "events",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "AppEventMetadataRaw": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "event_type": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "delivering",
              "delivered",
              "dead"
            ]
          },
          "generation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "attempt_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "payload_expired": {
            "type": "boolean"
          }
        },
        "required": [
          "event_id",
          "message_id",
          "event_type",
          "state",
          "generation",
          "attempt_count",
          "due_at",
          "created_at",
          "payload_expired"
        ],
        "additionalProperties": false
      },
      "AppEventReplayRaw": {
        "type": "object",
        "properties": {
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "generation": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "state": {
            "const": "pending"
          }
        },
        "required": [
          "event_id",
          "generation",
          "state"
        ],
        "additionalProperties": false
      },
      "PrepareAgentWorkflow": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "recipient_id": {
            "type": "string",
            "format": "uuid"
          },
          "task_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "action_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "variables": {
            "$ref": "#/components/schemas/Variables"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "scope",
          "grant_id",
          "workflow_version_id",
          "recipient_id",
          "task_id",
          "action_id",
          "variables"
        ],
        "additionalProperties": false
      },
      "AgentWorkflowPreviewRaw": {
        "type": "object",
        "properties": {
          "workflow_preparation_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "quote": {
            "type": "object",
            "properties": {
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$"
              }
            },
            "required": [
              "amount_microunits",
              "currency"
            ],
            "additionalProperties": false
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "executable": {
            "type": "boolean"
          },
          "supported_subset": {
            "type": "string",
            "enum": [
              "approved_graph",
              "sequential_send"
            ]
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PreparedAgentActionRaw"
            },
            "minItems": 1,
            "maxItems": 49
          },
          "replayed": {
            "type": "boolean"
          },
          "requires_reprepare": {
            "type": "boolean"
          }
        },
        "required": [
          "workflow_preparation_id",
          "workflow_version_id",
          "fingerprint",
          "quote",
          "expires_at",
          "executable",
          "supported_subset",
          "children",
          "replayed"
        ],
        "additionalProperties": false
      },
      "AgentWorkflowPreview": {
        "type": "object",
        "properties": {
          "workflow_preparation_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "fingerprint": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "quote": {
            "type": "object",
            "properties": {
              "amount_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$"
              }
            },
            "required": [
              "amount_microunits",
              "currency"
            ],
            "additionalProperties": false
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "executable": {
            "type": "boolean"
          },
          "supported_subset": {
            "type": "string",
            "enum": [
              "approved_graph",
              "sequential_send"
            ]
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PreparedAgentActionRaw"
            },
            "minItems": 1,
            "maxItems": 49
          },
          "replayed": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          },
          "requires_reprepare": {
            "type": "boolean"
          }
        },
        "required": [
          "workflow_preparation_id",
          "workflow_version_id",
          "fingerprint",
          "quote",
          "expires_at",
          "executable",
          "supported_subset",
          "children",
          "replayed",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentWorkflowOperationRaw": {
        "type": "object",
        "properties": {
          "workflow_preparation_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "coordinator_status": {
            "type": "string",
            "enum": [
              "prepared",
              "admitted",
              "running",
              "completed",
              "cancelled",
              "expired",
              "blocked",
              "coalesced"
            ]
          },
          "delivery_status": {
            "type": "string",
            "enum": [
              "not_submitted",
              "individual_message_evidence"
            ]
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentOperationData"
            },
            "minItems": 1,
            "maxItems": 49
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "workflow_preparation_id",
          "workflow_version_id",
          "workflow_run_id",
          "coordinator_status",
          "delivery_status",
          "children",
          "replayed"
        ],
        "additionalProperties": false
      },
      "AgentWorkflowOperation": {
        "type": "object",
        "properties": {
          "workflow_preparation_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "workflow_run_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "coordinator_status": {
            "type": "string",
            "enum": [
              "prepared",
              "admitted",
              "running",
              "completed",
              "cancelled",
              "expired",
              "blocked",
              "coalesced"
            ]
          },
          "delivery_status": {
            "type": "string",
            "enum": [
              "not_submitted",
              "individual_message_evidence"
            ]
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentOperationData"
            },
            "minItems": 1,
            "maxItems": 49
          },
          "replayed": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "workflow_preparation_id",
          "workflow_version_id",
          "workflow_run_id",
          "coordinator_status",
          "delivery_status",
          "children",
          "replayed",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentOAuthClient": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "redirect_uris": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "minItems": 1,
            "maxItems": 10
          }
        },
        "required": [
          "client_id",
          "name",
          "redirect_uris"
        ],
        "additionalProperties": false
      },
      "AgentOAuthAuthorizationRequest": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "response_type": {
            "const": "code"
          },
          "code_challenge": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "code_challenge_method": {
            "const": "S256"
          },
          "state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\x00-\\x1f\\x7f]+$"
          },
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "scope": {
            "type": "string",
            "enum": [
              "valosend:operations",
              "valosend:runtime",
              "valosend:operations valosend:runtime",
              "valosend:runtime valosend:operations"
            ]
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "client_id",
          "redirect_uri",
          "response_type",
          "code_challenge",
          "code_challenge_method",
          "resource",
          "grant_id"
        ],
        "additionalProperties": false
      },
      "AgentOAuthCreateReadGrantRequest": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "response_type": {
            "const": "code"
          },
          "code_challenge": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "code_challenge_method": {
            "const": "S256"
          },
          "state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\x00-\\x1f\\x7f]+$"
          },
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "scope": {
            "const": "valosend:operations"
          },
          "create_read_only_grant": {
            "type": "object",
            "properties": {
              "sender_id": {
                "type": "string",
                "format": "uuid"
              },
              "recipient_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "required": [],
            "additionalProperties": false
          }
        },
        "required": [
          "client_id",
          "redirect_uri",
          "response_type",
          "code_challenge",
          "code_challenge_method",
          "resource",
          "scope",
          "create_read_only_grant"
        ],
        "additionalProperties": false
      },
      "AgentOAuthManagementRequest": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "response_type": {
            "const": "code"
          },
          "code_challenge": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "code_challenge_method": {
            "const": "S256"
          },
          "state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\x00-\\x1f\\x7f]+$"
          },
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "scope": {
            "type": "string",
            "enum": [
              "valosend:management",
              "valosend:management offline_access",
              "offline_access valosend:management"
            ]
          },
          "allow_renewal": {
            "type": "boolean"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^valosend_[a-z0-9_]{1,55}$"
            },
            "minItems": 1,
            "maxItems": 64,
            "uniqueItems": true
          }
        },
        "required": [
          "client_id",
          "redirect_uri",
          "response_type",
          "code_challenge",
          "code_challenge_method",
          "resource",
          "scope",
          "tools"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "allow_renewal"
              ],
              "properties": {
                "allow_renewal": {
                  "const": true
                }
              }
            },
            "then": {
              "properties": {
                "scope": {
                  "type": "string",
                  "enum": [
                    "valosend:management offline_access",
                    "offline_access valosend:management"
                  ]
                }
              }
            }
          }
        ]
      },
      "AgentOAuthDenialRequest": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "response_type": {
            "const": "code"
          },
          "code_challenge": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          },
          "code_challenge_method": {
            "const": "S256"
          },
          "state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\x00-\\x1f\\x7f]+$"
          },
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "valosend:operations",
                  "valosend:runtime",
                  "valosend:operations valosend:runtime",
                  "valosend:runtime valosend:operations"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "valosend:management",
                  "valosend:management offline_access",
                  "offline_access valosend:management"
                ]
              }
            ]
          },
          "decision": {
            "const": "deny"
          }
        },
        "required": [
          "client_id",
          "redirect_uri",
          "response_type",
          "code_challenge",
          "code_challenge_method",
          "resource",
          "decision"
        ],
        "additionalProperties": false
      },
      "AgentOAuthDenial": {
        "type": "object",
        "properties": {
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "redirect_uri",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentOAuthAuthorization": {
        "type": "object",
        "properties": {
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "client_id": {
            "type": "string"
          },
          "profile": {
            "type": "string",
            "enum": [
              "operations",
              "runtime"
            ]
          },
          "grant_id": {
            "type": "string",
            "format": "uuid"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "redirect_uri",
          "expires_at",
          "client_id",
          "profile",
          "grant_id",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentOAuthManagementAuthorization": {
        "type": "object",
        "properties": {
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "profile": {
            "const": "management"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "redirect_uri",
          "expires_at",
          "profile",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentOAuthAuthorizationServer": {
        "type": "object",
        "properties": {
          "issuer": {
            "type": "string",
            "format": "uri"
          },
          "authorization_endpoint": {
            "type": "string",
            "format": "uri"
          },
          "token_endpoint": {
            "type": "string",
            "format": "uri"
          },
          "revocation_endpoint": {
            "type": "string",
            "format": "uri"
          },
          "response_types_supported": {
            "const": [
              "code"
            ]
          },
          "grant_types_supported": {
            "enum": [
              [
                "authorization_code"
              ],
              [
                "authorization_code",
                "refresh_token"
              ]
            ]
          },
          "code_challenge_methods_supported": {
            "const": [
              "S256"
            ]
          },
          "token_endpoint_auth_methods_supported": {
            "const": [
              "none"
            ]
          },
          "revocation_endpoint_auth_methods_supported": {
            "const": [
              "none"
            ]
          },
          "scopes_supported": {
            "enum": [
              [
                "valosend:operations",
                "valosend:runtime"
              ],
              [
                "valosend:operations",
                "valosend:runtime",
                "valosend:management",
                "offline_access"
              ]
            ]
          },
          "client_id_metadata_document_supported": {
            "const": false
          },
          "authorization_response_iss_parameter_supported": {
            "const": true
          }
        },
        "required": [
          "issuer",
          "authorization_endpoint",
          "token_endpoint",
          "revocation_endpoint",
          "response_types_supported",
          "grant_types_supported",
          "code_challenge_methods_supported",
          "token_endpoint_auth_methods_supported",
          "revocation_endpoint_auth_methods_supported",
          "scopes_supported",
          "client_id_metadata_document_supported",
          "authorization_response_iss_parameter_supported"
        ],
        "additionalProperties": false
      },
      "AgentOAuthProtectedResource": {
        "type": "object",
        "properties": {
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "authorization_servers": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "minItems": 1,
            "maxItems": 1
          },
          "scopes_supported": {
            "enum": [
              [
                "valosend:operations",
                "valosend:runtime"
              ],
              [
                "valosend:operations",
                "valosend:runtime",
                "valosend:management"
              ]
            ]
          },
          "bearer_methods_supported": {
            "const": [
              "header"
            ]
          },
          "resource_name": {
            "const": "ValoSend delegated agents"
          }
        },
        "required": [
          "resource",
          "authorization_servers",
          "scopes_supported",
          "bearer_methods_supported",
          "resource_name"
        ],
        "additionalProperties": false
      },
      "AgentOAuthTokenRequest": {
        "type": "object",
        "properties": {
          "grant_type": {
            "const": "authorization_code"
          },
          "code": {
            "type": "string",
            "pattern": "^(?:vac_)?[A-Za-z0-9_-]{43}$"
          },
          "code_verifier": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._~-]{43,128}$"
          },
          "client_id": {
            "type": "string"
          },
          "redirect_uri": {
            "type": "string",
            "format": "uri"
          },
          "resource": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "grant_type",
          "code",
          "code_verifier",
          "client_id",
          "redirect_uri",
          "resource"
        ],
        "additionalProperties": false
      },
      "AgentOAuthToken": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "pattern": "^vs_[A-Za-z0-9_-]{43}$"
          },
          "token_type": {
            "const": "Bearer"
          },
          "expires_in": {
            "type": "integer",
            "minimum": 0,
            "maximum": 900
          },
          "scope": {
            "type": "string",
            "enum": [
              "valosend:operations",
              "valosend:runtime"
            ]
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "scope"
        ],
        "additionalProperties": false
      },
      "AgentOAuthManagementToken": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "pattern": "^vam_[A-Za-z0-9_-]{43}$"
          },
          "token_type": {
            "const": "Bearer"
          },
          "expires_in": {
            "const": 900
          },
          "scope": {
            "const": "valosend:management"
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "scope"
        ],
        "additionalProperties": false
      },
      "AgentOAuthManagementRefreshRequest": {
        "type": "object",
        "properties": {
          "grant_type": {
            "const": "refresh_token"
          },
          "refresh_token": {
            "type": "string",
            "pattern": "^var_[A-Za-z0-9_-]{43}$"
          },
          "client_id": {
            "type": "string"
          },
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "scope": {
            "const": "valosend:management offline_access"
          }
        },
        "required": [
          "grant_type",
          "refresh_token",
          "client_id",
          "resource"
        ],
        "additionalProperties": false
      },
      "AgentOAuthRenewableManagementToken": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "pattern": "^vam_[A-Za-z0-9_-]{43}$"
          },
          "refresh_token": {
            "type": "string",
            "pattern": "^var_[A-Za-z0-9_-]{43}$"
          },
          "token_type": {
            "const": "Bearer"
          },
          "expires_in": {
            "type": "integer",
            "minimum": 1,
            "maximum": 900
          },
          "scope": {
            "const": "valosend:management offline_access"
          }
        },
        "required": [
          "access_token",
          "refresh_token",
          "token_type",
          "expires_in",
          "scope"
        ],
        "additionalProperties": false
      },
      "AgentOAuthError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "invalid_grant",
              "invalid_scope",
              "access_denied",
              "invalid_request",
              "invalid_client",
              "unsupported_grant_type",
              "server_error"
            ]
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "AgentRemoteInventory": {
        "type": "object",
        "properties": {
          "enabled": {
            "const": true
          },
          "issuer": {
            "type": "string",
            "format": "uri"
          },
          "resource": {
            "type": "string",
            "format": "uri"
          },
          "protocol_versions": {
            "const": [
              "2026-07-28",
              "2025-11-25",
              "2025-06-18"
            ]
          },
          "clients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentOAuthClient"
            },
            "maxItems": 30
          },
          "connections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "credential_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "grant_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "client_id": {
                  "type": "string"
                },
                "profile": {
                  "type": "string",
                  "enum": [
                    "operations",
                    "runtime"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "revoked"
                  ]
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "key_prefix": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "credential_id",
                "grant_id",
                "client_id",
                "profile",
                "status",
                "expires_at",
                "key_prefix",
                "created_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "profiles": {
            "type": "object",
            "properties": {
              "operations": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "runtime": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "operations",
              "runtime"
            ],
            "additionalProperties": false
          },
          "email_only": {
            "type": "boolean"
          },
          "workflow_subset": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "approved_graph",
                  "sequential_send"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "request_id": {
            "type": "string"
          },
          "read_only_grant": {
            "type": "object",
            "properties": {
              "policy": {
                "$ref": "#/components/schemas/AgentPolicy"
              },
              "duration_seconds": {
                "const": 900
              },
              "senders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "recipients": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "external_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "external_id"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              }
            },
            "required": [
              "policy",
              "duration_seconds",
              "senders",
              "recipients"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "enabled",
          "issuer",
          "resource",
          "protocol_versions",
          "clients",
          "connections",
          "profiles",
          "email_only",
          "workflow_subset",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentRemoteRevocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "const": "revoked"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentRemotePlayground": {
        "type": "object",
        "properties": {
          "sandbox": {
            "const": true
          },
          "provider_submissions": {
            "const": 0
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentCapabilitiesRaw"
              },
              {
                "$ref": "#/components/schemas/PreparedAgentActionRaw"
              },
              {
                "$ref": "#/components/schemas/AgentOperationRaw"
              }
            ]
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "sandbox",
          "provider_submissions",
          "result",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentManagementInventory": {
        "type": "object",
        "properties": {
          "catalog": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "title": {
                  "type": "string",
                  "minLength": 1
                },
                "description": {
                  "type": "string"
                },
                "inputSchema": {
                  "type": [
                    "object",
                    "boolean"
                  ]
                },
                "outputSchema": {
                  "type": [
                    "object",
                    "boolean"
                  ]
                },
                "annotations": {
                  "type": "object",
                  "properties": {
                    "readOnlyHint": {
                      "type": "boolean"
                    },
                    "destructiveHint": {
                      "type": "boolean"
                    },
                    "idempotentHint": {
                      "type": "boolean"
                    },
                    "openWorldHint": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "readOnlyHint",
                    "destructiveHint",
                    "idempotentHint",
                    "openWorldHint"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "name",
                "title",
                "description",
                "inputSchema",
                "annotations"
              ],
              "additionalProperties": false
            }
          },
          "renewable_tools": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^valosend_[a-z0-9_]{1,55}$"
            },
            "uniqueItems": true
          },
          "connections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "approved_by": {
                  "type": "string",
                  "format": "uuid"
                },
                "client_id": {
                  "type": "string"
                },
                "tools": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1,
                  "maxItems": 64
                },
                "approved_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "code_expires_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "token_expires_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "renewal_expires_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "revoked_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "approved_by",
                "client_id",
                "tools",
                "approved_at",
                "code_expires_at",
                "token_expires_at",
                "renewal_expires_at",
                "revoked_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 100
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "catalog",
          "renewable_tools",
          "connections",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AgentManagementRevocation": {
        "type": "object",
        "properties": {
          "status": {
            "const": "revoked"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "request_id"
        ],
        "additionalProperties": false
      },
      "McpToolResult": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": false
            }
          },
          "structuredContent": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "ok": {
                    "const": true
                  },
                  "data": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgentCapabilitiesRaw"
                      },
                      {
                        "$ref": "#/components/schemas/PreparedAgentActionRaw"
                      },
                      {
                        "$ref": "#/components/schemas/AgentOperationRaw"
                      },
                      {
                        "$ref": "#/components/schemas/AgentCancellationRaw"
                      },
                      {
                        "$ref": "#/components/schemas/AgentEventsRaw"
                      },
                      {
                        "$ref": "#/components/schemas/AppEventMetadataRaw"
                      },
                      {
                        "$ref": "#/components/schemas/AppEventReplayRaw"
                      },
                      {
                        "$ref": "#/components/schemas/AgentWorkflowPreviewRaw"
                      },
                      {
                        "$ref": "#/components/schemas/AgentWorkflowOperationRaw"
                      }
                    ]
                  }
                },
                "required": [
                  "ok",
                  "data"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "ok": {
                    "const": false
                  },
                  "error": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string"
                      },
                      "retryable": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "code",
                      "retryable"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "ok",
                  "error"
                ],
                "additionalProperties": false
              }
            ]
          },
          "isError": {
            "type": "boolean"
          }
        },
        "required": [
          "content",
          "structuredContent",
          "isError"
        ],
        "additionalProperties": false
      },
      "McpManagementToolResult": {
        "type": "object",
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "const": "text"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "text"
              ],
              "additionalProperties": false
            }
          },
          "structuredContent": {
            "type": "object",
            "properties": {
              "ok": {
                "const": true
              },
              "data": {
                "type": "object",
                "description": "Result for the selected workspace management tool. Available tools depend on the deployment and current workspace approval."
              }
            },
            "required": [
              "ok",
              "data"
            ],
            "additionalProperties": false
          },
          "isError": {
            "const": false
          }
        },
        "required": [
          "content",
          "structuredContent",
          "isError"
        ],
        "additionalProperties": false
      },
      "McpResponse": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ]
              },
              "result": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "protocolVersion": {
                        "type": "string",
                        "enum": [
                          "2026-07-28",
                          "2025-11-25",
                          "2025-06-18"
                        ]
                      },
                      "capabilities": {
                        "type": "object",
                        "properties": {
                          "tools": {
                            "type": "object",
                            "properties": {
                              "listChanged": {
                                "const": false
                              }
                            },
                            "required": [
                              "listChanged"
                            ],
                            "additionalProperties": false
                          },
                          "resources": {
                            "type": "object",
                            "properties": {
                              "subscribe": {
                                "const": false
                              },
                              "listChanged": {
                                "const": false
                              }
                            },
                            "required": [
                              "subscribe",
                              "listChanged"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "tools",
                          "resources"
                        ],
                        "additionalProperties": false
                      },
                      "serverInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "const": "valosend"
                          },
                          "version": {
                            "const": "0.5.0"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "instructions": {
                        "type": "string"
                      },
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "protocolVersion",
                      "capabilities",
                      "serverInfo",
                      "instructions"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "resources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "uri": {
                              "type": "string",
                              "format": "uri"
                            },
                            "name": {
                              "type": "string"
                            },
                            "mimeType": {
                              "const": "application/json"
                            },
                            "description": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "uri",
                            "name",
                            "mimeType",
                            "description"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "resources"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "contents": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "uri": {
                              "type": "string",
                              "format": "uri"
                            },
                            "mimeType": {
                              "const": "application/json"
                            },
                            "text": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "uri",
                            "mimeType",
                            "text"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "contents"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "tools": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1
                            },
                            "description": {
                              "type": "string"
                            },
                            "inputSchema": {
                              "type": [
                                "object",
                                "boolean"
                              ]
                            },
                            "outputSchema": {
                              "type": [
                                "object",
                                "boolean"
                              ]
                            },
                            "annotations": {
                              "type": "object",
                              "properties": {
                                "readOnlyHint": {
                                  "type": "boolean"
                                },
                                "destructiveHint": {
                                  "type": "boolean"
                                },
                                "idempotentHint": {
                                  "type": "boolean"
                                },
                                "openWorldHint": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "readOnlyHint",
                                "destructiveHint",
                                "idempotentHint",
                                "openWorldHint"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "name",
                            "title",
                            "description",
                            "inputSchema",
                            "annotations"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "tools"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "content": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "text"
                            },
                            "text": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "structuredContent": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "ok": {
                                "const": true
                              },
                              "data": {
                                "anyOf": [
                                  {
                                    "$ref": "#/components/schemas/AgentCapabilitiesRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/PreparedAgentActionRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AgentOperationRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AgentCancellationRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AgentEventsRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AppEventMetadataRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AppEventReplayRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AgentWorkflowPreviewRaw"
                                  },
                                  {
                                    "$ref": "#/components/schemas/AgentWorkflowOperationRaw"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "ok",
                              "data"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "ok": {
                                "const": false
                              },
                              "error": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string"
                                  },
                                  "retryable": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "code",
                                  "retryable"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "ok",
                              "error"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "isError": {
                        "type": "boolean"
                      },
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "content",
                      "structuredContent",
                      "isError"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "content": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "const": "text"
                            },
                            "text": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "structuredContent": {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "const": true
                          },
                          "data": {
                            "type": "object",
                            "description": "Result for the selected workspace management tool. Available tools depend on the deployment and current workspace approval."
                          }
                        },
                        "required": [
                          "ok",
                          "data"
                        ],
                        "additionalProperties": false
                      },
                      "isError": {
                        "const": false
                      },
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "content",
                      "structuredContent",
                      "isError"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "supportedVersions": {
                        "const": [
                          "2026-07-28",
                          "2025-11-25",
                          "2025-06-18"
                        ]
                      },
                      "capabilities": {
                        "type": "object",
                        "properties": {
                          "tools": {
                            "type": "object",
                            "properties": {
                              "listChanged": {
                                "const": false
                              }
                            },
                            "required": [
                              "listChanged"
                            ],
                            "additionalProperties": false
                          },
                          "resources": {
                            "type": "object",
                            "properties": {
                              "subscribe": {
                                "const": false
                              },
                              "listChanged": {
                                "const": false
                              }
                            },
                            "required": [
                              "subscribe",
                              "listChanged"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "tools",
                          "resources"
                        ],
                        "additionalProperties": false
                      },
                      "instructions": {
                        "type": "string"
                      },
                      "ttlMs": {
                        "const": 0
                      },
                      "cacheScope": {
                        "const": "private"
                      },
                      "resultType": {
                        "const": "complete"
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/serverInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "const": "valosend"
                              },
                              "version": {
                                "const": "0.5.0"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "com.valosend/operation-id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "supportedVersions",
                      "capabilities",
                      "instructions",
                      "ttlMs",
                      "cacheScope"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer",
                  "null"
                ]
              },
              "error": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "integer"
                  },
                  "message": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "supported": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "requested": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "supported",
                      "requested"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "code",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "error"
            ],
            "additionalProperties": false
          }
        ]
      },
      "McpRequest": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "initialize"
              },
              "params": {
                "type": "object",
                "properties": {
                  "protocolVersion": {
                    "type": "string"
                  },
                  "capabilities": {
                    "type": "object"
                  },
                  "clientInfo": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "version"
                    ],
                    "additionalProperties": false
                  },
                  "_meta": {
                    "type": "object",
                    "properties": {
                      "io.modelcontextprotocol/protocolVersion": {
                        "type": "string"
                      },
                      "io.modelcontextprotocol/clientInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "io.modelcontextprotocol/clientCapabilities": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "io.modelcontextprotocol/protocolVersion",
                      "io.modelcontextprotocol/clientCapabilities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "protocolVersion",
                  "capabilities",
                  "clientInfo"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "method",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "server/discover"
              },
              "params": {
                "type": "object",
                "properties": {
                  "_meta": {
                    "type": "object",
                    "properties": {
                      "io.modelcontextprotocol/protocolVersion": {
                        "type": "string"
                      },
                      "io.modelcontextprotocol/clientInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "io.modelcontextprotocol/clientCapabilities": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "io.modelcontextprotocol/protocolVersion",
                      "io.modelcontextprotocol/clientCapabilities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "method",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "ping"
              },
              "params": {
                "type": "object",
                "properties": {
                  "_meta": {
                    "type": "object",
                    "properties": {
                      "io.modelcontextprotocol/protocolVersion": {
                        "type": "string"
                      },
                      "io.modelcontextprotocol/clientInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "io.modelcontextprotocol/clientCapabilities": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "io.modelcontextprotocol/protocolVersion",
                      "io.modelcontextprotocol/clientCapabilities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "method",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "resources/list"
              },
              "params": {
                "type": "object",
                "properties": {
                  "_meta": {
                    "type": "object",
                    "properties": {
                      "io.modelcontextprotocol/protocolVersion": {
                        "type": "string"
                      },
                      "io.modelcontextprotocol/clientInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "io.modelcontextprotocol/clientCapabilities": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "io.modelcontextprotocol/protocolVersion",
                      "io.modelcontextprotocol/clientCapabilities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "method",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "resources/read"
              },
              "params": {
                "type": "object",
                "properties": {
                  "uri": {
                    "const": "valosend://capabilities"
                  },
                  "_meta": {
                    "type": "object",
                    "properties": {
                      "io.modelcontextprotocol/protocolVersion": {
                        "type": "string"
                      },
                      "io.modelcontextprotocol/clientInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "io.modelcontextprotocol/clientCapabilities": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "io.modelcontextprotocol/protocolVersion",
                      "io.modelcontextprotocol/clientCapabilities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "uri"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "method",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "tools/list"
              },
              "params": {
                "type": "object",
                "properties": {
                  "_meta": {
                    "type": "object",
                    "properties": {
                      "io.modelcontextprotocol/protocolVersion": {
                        "type": "string"
                      },
                      "io.modelcontextprotocol/clientInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "io.modelcontextprotocol/clientCapabilities": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "io.modelcontextprotocol/protocolVersion",
                      "io.modelcontextprotocol/clientCapabilities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "method",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "tools/call"
              },
              "params": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_get_capabilities"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {},
                        "required": [],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_preview"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "task_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                          },
                          "action_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                          },
                          "message": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "recipient_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "endpoint_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sender_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "purpose": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                                  },
                                  "topic_key": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "expires_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "scheduled_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "max_cost_microunits": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "channel": {
                                    "const": "email"
                                  },
                                  "content": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "inline"
                                          },
                                          "subject": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 998
                                          },
                                          "text": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 65536
                                          },
                                          "html": {
                                            "type": "string",
                                            "minLength": 0,
                                            "maxLength": 131072
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "subject",
                                          "text"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "template"
                                          },
                                          "template_version_id": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "variables": {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string",
                                              "minLength": 0,
                                              "maxLength": 8192
                                            }
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "template_version_id",
                                          "variables"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "recipient_id",
                                  "sender_id",
                                  "purpose",
                                  "channel",
                                  "content"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "recipient_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "endpoint_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sender_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "purpose": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                                  },
                                  "topic_key": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "expires_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "scheduled_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "max_cost_microunits": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "channel": {
                                    "const": "push"
                                  },
                                  "content": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "inline"
                                          },
                                          "title": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 256
                                          },
                                          "body": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          "url": {
                                            "type": "string",
                                            "format": "uri"
                                          },
                                          "ttl_seconds": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 2419200
                                          },
                                          "collapse_key": {
                                            "type": "string",
                                            "pattern": "^[A-Za-z0-9_-]{1,64}$"
                                          },
                                          "visibility": {
                                            "enum": [
                                              "private",
                                              "public"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "title",
                                          "body"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "template"
                                          },
                                          "template_version_id": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "variables": {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string",
                                              "minLength": 0,
                                              "maxLength": 8192
                                            }
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "template_version_id",
                                          "variables"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "recipient_id",
                                  "sender_id",
                                  "purpose",
                                  "channel",
                                  "content"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "recipient_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "endpoint_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sender_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "purpose": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                                  },
                                  "topic_key": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "expires_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "scheduled_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "max_cost_microunits": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "channel": {
                                    "const": "sms"
                                  },
                                  "content": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "inline"
                                          },
                                          "body": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 1600
                                          },
                                          "device_reference": {
                                            "type": "string",
                                            "pattern": "^[A-Za-z0-9_.:-]{16,128}$"
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "body"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "template"
                                          },
                                          "template_version_id": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "variables": {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string",
                                              "minLength": 0,
                                              "maxLength": 8192
                                            }
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "template_version_id",
                                          "variables"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "recipient_id",
                                  "sender_id",
                                  "purpose",
                                  "channel",
                                  "content"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "recipient_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "endpoint_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sender_id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "purpose": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
                                  },
                                  "topic_key": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "expires_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "scheduled_at": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "max_cost_microunits": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "channel": {
                                    "const": "whatsapp"
                                  },
                                  "content": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "inline"
                                          },
                                          "body": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "body"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "const": "template"
                                          },
                                          "template_version_id": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "variables": {
                                            "type": "object",
                                            "additionalProperties": {
                                              "type": "string",
                                              "minLength": 0,
                                              "maxLength": 8192
                                            }
                                          }
                                        },
                                        "required": [
                                          "kind",
                                          "template_version_id",
                                          "variables"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "recipient_id",
                                  "sender_id",
                                  "purpose",
                                  "channel",
                                  "content"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "response": {
                            "type": "object",
                            "properties": {
                              "question": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "choices": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "uniqueItems": true
                              },
                              "expected_user_id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "minimum_aal": {
                                "enum": [
                                  "aal1",
                                  "aal2"
                                ]
                              },
                              "expires_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "link_variable": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
                              }
                            },
                            "required": [
                              "question",
                              "choices",
                              "expected_user_id",
                              "minimum_aal",
                              "expires_at"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "task_id",
                          "action_id",
                          "message"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_execute"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "operation_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "fingerprint": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          }
                        },
                        "required": [
                          "operation_id",
                          "fingerprint"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_preview_workflow"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "task_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                          },
                          "action_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                          },
                          "workflow_version_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "recipient_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "variables": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "expires_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "scheduled_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "task_id",
                          "action_id",
                          "workflow_version_id",
                          "recipient_id",
                          "variables"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_trigger_workflow"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "workflow_preparation_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "fingerprint": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          }
                        },
                        "required": [
                          "workflow_preparation_id",
                          "fingerprint"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_update_workflow_state"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "workflow_preparation_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "revision": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "state": {
                            "type": "object",
                            "maxProperties": 20,
                            "additionalProperties": {
                              "type": [
                                "string",
                                "boolean"
                              ]
                            }
                          }
                        },
                        "required": [
                          "workflow_preparation_id",
                          "revision",
                          "state"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_get_workflow"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "workflow_preparation_id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [
                          "workflow_preparation_id"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_cancel_workflow"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "workflow_preparation_id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [
                          "workflow_preparation_id"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_get_operation"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "operation_id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [
                          "operation_id"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_diagnose"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "operation_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "task_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                          },
                          "action_id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                          }
                        },
                        "required": [],
                        "additionalProperties": false,
                        "oneOf": [
                          {
                            "required": [
                              "operation_id"
                            ],
                            "maxProperties": 1
                          },
                          {
                            "required": [
                              "task_id",
                              "action_id"
                            ],
                            "maxProperties": 2
                          }
                        ]
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_cancel"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "operation_id": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [
                          "operation_id"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_list_events"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "cursor": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "const": "valosend_replay_event"
                      },
                      "arguments": {
                        "type": "object",
                        "properties": {
                          "event_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "idempotency_key": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
                          }
                        },
                        "required": [
                          "event_id",
                          "idempotency_key"
                        ],
                        "additionalProperties": false
                      },
                      "_meta": {
                        "type": "object",
                        "properties": {
                          "io.modelcontextprotocol/protocolVersion": {
                            "type": "string"
                          },
                          "io.modelcontextprotocol/clientInfo": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "version"
                            ],
                            "additionalProperties": false
                          },
                          "io.modelcontextprotocol/clientCapabilities": {
                            "type": "object"
                          }
                        },
                        "required": [
                          "io.modelcontextprotocol/protocolVersion",
                          "io.modelcontextprotocol/clientCapabilities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "^valosend_[a-z0-9_]{1,55}$",
                        "not": {
                          "enum": [
                            "valosend_get_capabilities",
                            "valosend_preview",
                            "valosend_execute",
                            "valosend_preview_workflow",
                            "valosend_trigger_workflow",
                            "valosend_update_workflow_state",
                            "valosend_get_workflow",
                            "valosend_cancel_workflow",
                            "valosend_get_operation",
                            "valosend_diagnose",
                            "valosend_cancel",
                            "valosend_list_events",
                            "valosend_replay_event"
                          ]
                        }
                      },
                      "arguments": {
                        "type": "object",
                        "description": "Use the inputSchema from tools/list with a valosend:management token."
                      },
                      "_meta": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "com.valosend/operation-id": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "required": [
                              "com.valosend/operation-id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "io.modelcontextprotocol/protocolVersion": {
                                "type": "string"
                              },
                              "io.modelcontextprotocol/clientInfo": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "version": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "name",
                                  "version"
                                ],
                                "additionalProperties": false
                              },
                              "io.modelcontextprotocol/clientCapabilities": {
                                "type": "object"
                              },
                              "com.valosend/operation-id": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "required": [
                              "io.modelcontextprotocol/protocolVersion",
                              "io.modelcontextprotocol/clientCapabilities"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "arguments"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "method",
              "params"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "jsonrpc": {
                "const": "2.0"
              },
              "id": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "method": {
                "const": "notifications/initialized"
              },
              "params": {
                "type": "object",
                "properties": {
                  "_meta": {
                    "type": "object",
                    "properties": {
                      "io.modelcontextprotocol/protocolVersion": {
                        "type": "string"
                      },
                      "io.modelcontextprotocol/clientInfo": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "io.modelcontextprotocol/clientCapabilities": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "io.modelcontextprotocol/protocolVersion",
                      "io.modelcontextprotocol/clientCapabilities"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            },
            "required": [
              "jsonrpc",
              "method"
            ],
            "additionalProperties": false
          }
        ]
      },
      "WorkspaceChangeReviewList": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "proposals": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "proposal_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "organization_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "application_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "environment": {
                      "type": "string",
                      "enum": [
                        "sandbox",
                        "production"
                      ]
                    },
                    "brand_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "requested_by": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "environment",
                        "membership",
                        "scope_grant",
                        "export_download",
                        "closure"
                      ]
                    },
                    "change": {
                      "type": "object",
                      "maxProperties": 6,
                      "additionalProperties": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        ]
                      }
                    },
                    "previous": {
                      "type": "object",
                      "maxProperties": 6,
                      "additionalProperties": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        ]
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "accepted",
                        "rejected",
                        "expired"
                      ]
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "effect": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "proposal_id",
                    "organization_id",
                    "application_id",
                    "environment",
                    "brand_id",
                    "requested_by",
                    "kind",
                    "change",
                    "previous",
                    "status",
                    "expires_at",
                    "client_id",
                    "effect"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "request_id": {
                "type": "string"
              }
            },
            "required": [
              "proposals",
              "request_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "environments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "application_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "application_name": {
                      "type": "string"
                    },
                    "environment": {
                      "type": "string",
                      "enum": [
                        "sandbox",
                        "production"
                      ]
                    },
                    "brand_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "brand_name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "application_id",
                    "application_name",
                    "environment",
                    "brand_id",
                    "brand_name"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 50
              },
              "next_offset": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "request_id": {
                "type": "string"
              }
            },
            "required": [
              "environments",
              "next_offset",
              "request_id"
            ],
            "additionalProperties": false
          }
        ]
      },
      "WorkspaceChangeDecision": {
        "type": "object",
        "properties": {
          "proposal": {
            "type": "object",
            "properties": {
              "proposal_id": {
                "type": "string",
                "format": "uuid"
              },
              "organization_id": {
                "type": "string",
                "format": "uuid"
              },
              "application_id": {
                "type": "string",
                "format": "uuid"
              },
              "environment": {
                "type": "string",
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "brand_id": {
                "type": "string",
                "format": "uuid"
              },
              "requested_by": {
                "type": "string",
                "format": "uuid"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "environment",
                  "membership",
                  "scope_grant",
                  "export_download",
                  "closure"
                ]
              },
              "change": {
                "type": "object",
                "maxProperties": 6,
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                }
              },
              "previous": {
                "type": "object",
                "maxProperties": 6,
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                }
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "accepted",
                  "rejected",
                  "expired"
                ]
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              },
              "client_id": {
                "type": "string"
              },
              "effect": {
                "type": "string"
              }
            },
            "required": [
              "proposal_id",
              "organization_id",
              "application_id",
              "environment",
              "brand_id",
              "requested_by",
              "kind",
              "change",
              "previous",
              "status",
              "expires_at",
              "client_id",
              "effect"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "proposal",
          "request_id"
        ],
        "additionalProperties": false
      },
      "CustomerLimits": {
        "type": "object",
        "properties": {
          "max_messages_per_day": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "max_recipients": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "max_applications": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "max_provider_connections": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "required": [
          "max_messages_per_day",
          "max_recipients",
          "max_applications",
          "max_provider_connections"
        ],
        "additionalProperties": false
      },
      "CustomerAccount": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "business_name": {
            "type": "string",
            "maxLength": 160
          },
          "contact_email": {
            "type": "string",
            "format": "email"
          },
          "accountable_user_id": {
            "type": "string",
            "format": "uuid"
          },
          "customer_kind": {
            "type": "string",
            "enum": [
              "internal",
              "independent"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "onboarding",
              "active",
              "suspended",
              "closing",
              "closed"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "test",
              "pilot",
              "commercial"
            ]
          },
          "max_messages_per_day": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "max_recipients": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "max_applications": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "max_provider_connections": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          }
        },
        "required": [
          "organization_id",
          "business_name",
          "contact_email",
          "accountable_user_id",
          "customer_kind",
          "status",
          "tier",
          "max_messages_per_day",
          "max_recipients",
          "max_applications",
          "max_provider_connections",
          "configuration_version"
        ],
        "additionalProperties": false
      },
      "CustomerEnrollmentRequest": {
        "type": "object",
        "properties": {
          "business_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "organization_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "application_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "brand_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "organization_slug": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
          },
          "application_slug": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
          },
          "brand_slug": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
          },
          "idempotency_key": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "customer_kind": {
            "type": "string",
            "enum": [
              "internal",
              "independent"
            ]
          },
          "reporting_timezone": {
            "type": "string",
            "maxLength": 100
          }
        },
        "required": [
          "idempotency_key",
          "business_name",
          "organization_name",
          "organization_slug",
          "application_name",
          "application_slug",
          "brand_name",
          "brand_slug"
        ],
        "additionalProperties": false
      },
      "CustomerEnrollment": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "customer": {
            "$ref": "#/components/schemas/CustomerAccount"
          },
          "workspace": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "role": {
                "const": "owner"
              }
            },
            "required": [
              "id",
              "name",
              "slug",
              "role"
            ],
            "additionalProperties": false
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogicalScope"
            },
            "minItems": 2,
            "maxItems": 2
          },
          "limits": {
            "$ref": "#/components/schemas/CustomerLimits"
          },
          "replayed": {
            "type": "boolean"
          },
          "provider_billing": {
            "const": "external"
          },
          "transport_cost": {
            "type": "object",
            "properties": {
              "platform_transport_microunits": {
                "const": 0
              },
              "provider_cost": {
                "const": "unobserved"
              },
              "provider_invoice_included": {
                "const": false
              }
            },
            "required": [
              "platform_transport_microunits",
              "provider_cost",
              "provider_invoice_included"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "customer",
          "workspace",
          "scope",
          "scopes",
          "limits",
          "replayed",
          "provider_billing",
          "transport_cost"
        ],
        "additionalProperties": false
      },
      "CustomerProviderConnection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "provider_account_id": {
            "type": "string",
            "format": "uuid"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "readiness": {
            "type": "string",
            "enum": [
              "ready",
              "not_ready"
            ]
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          },
          "provider": {
            "type": "string",
            "enum": [
              "resend",
              "ses",
              "expo",
              "fcm",
              "apns",
              "webpush"
            ]
          },
          "external_account_id": {
            "type": "string"
          },
          "ownership": {
            "type": "string",
            "enum": [
              "byo",
              "managed"
            ]
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "evidence_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "disconnected_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "feedback_webhook_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri",
                "pattern": "^https://"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "provider_account_id",
          "channel",
          "status",
          "readiness",
          "configuration_version",
          "provider",
          "external_account_id",
          "ownership"
        ],
        "additionalProperties": false
      },
      "CustomerSendingHealth": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "clear",
              "watch",
              "warn",
              "throttle",
              "suspend",
              "probation"
            ]
          },
          "verdicts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "abuse",
                    "probation"
                  ]
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "monitor",
                    "warn",
                    "throttle",
                    "suspend"
                  ]
                },
                "ceiling_per_window": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "evidence": {
                  "type": "object"
                }
              },
              "required": [
                "id",
                "kind",
                "action",
                "ceiling_per_window",
                "evidence"
              ],
              "additionalProperties": false
            },
            "maxItems": 5
          },
          "dedicated_ip": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "region": {
                  "type": "string"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "approved",
                    "provisioning_failed",
                    "provisioned",
                    "assigned",
                    "evidence_stale",
                    "rolled_back"
                  ]
                },
                "provider_checked_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "warmup": {
                  "const": "unverified"
                },
                "shared_ip_possible": {
                  "const": true
                },
                "evidence": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "const": "selected_configuration_route"
                    },
                    "window_started_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "window_ended_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "selected_attempts": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "send_receipt_attempts": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "delivered_attempts": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "bounced_attempts": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "complained_attempts": {
                      "type": "integer",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "source",
                    "window_started_at",
                    "window_ended_at",
                    "selected_attempts",
                    "send_receipt_attempts",
                    "delivered_attempts",
                    "bounced_attempts",
                    "complained_attempts"
                  ],
                  "additionalProperties": false,
                  "description": "Counts attempt route selections and signed SES outcomes. SES may use shared IPs."
                }
              },
              "required": [
                "region",
                "state",
                "provider_checked_at",
                "warmup",
                "shared_ip_possible",
                "evidence"
              ],
              "additionalProperties": false,
              "description": "Assigned means the workspace mapping was activated and provider configuration evidence is current. Routing also requires the dispatch opt-in and an eligible submission."
            },
            "minItems": 1
          }
        },
        "required": [
          "status",
          "verdicts"
        ],
        "additionalProperties": false
      },
      "CustomerOnboarding": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "customer": {
            "$ref": "#/components/schemas/CustomerAccount"
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogicalScope"
            },
            "maxItems": 100
          },
          "limits": {
            "$ref": "#/components/schemas/CustomerLimits"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerProviderConnection"
            },
            "maxItems": 100
          },
          "tests": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "status": {
                  "type": "string"
                },
                "message_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "status",
                "message_id",
                "created_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 20
          },
          "secret_store_configured": {
            "type": "boolean"
          },
          "provider_verification_configured": {
            "type": "boolean"
          },
          "managed_email_setup_scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogicalScope"
            },
            "maxItems": 100
          },
          "first_test_configured": {
            "type": "boolean"
          },
          "health": {
            "$ref": "#/components/schemas/CustomerSendingHealth"
          },
          "checklist": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "detail": {
                  "type": "string"
                },
                "href": {
                  "type": "string"
                }
              },
              "required": [
                "key",
                "label",
                "status",
                "detail",
                "href"
              ],
              "additionalProperties": false
            },
            "maxItems": 30
          }
        },
        "required": [
          "request_id",
          "customer",
          "scopes",
          "limits",
          "providers",
          "tests",
          "secret_store_configured",
          "provider_verification_configured",
          "managed_email_setup_scopes",
          "first_test_configured",
          "health",
          "checklist"
        ],
        "additionalProperties": false
      },
      "CustomerProviderList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "customer": {
            "$ref": "#/components/schemas/CustomerAccount"
          },
          "providers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerProviderConnection"
            },
            "maxItems": 100
          }
        },
        "required": [
          "request_id",
          "customer",
          "providers"
        ],
        "additionalProperties": false
      },
      "CustomerProviderCredential": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "api_key": {
                "type": "string",
                "pattern": "^re_[A-Za-z0-9_-]{8,256}$"
              },
              "webhook_keys": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9._:-]{1,64}$"
                    },
                    "secret": {
                      "type": "string",
                      "pattern": "^whsec_[A-Za-z0-9+/]{40,}={0,2}$"
                    },
                    "valid_from": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "valid_until": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "version",
                    "secret",
                    "valid_from",
                    "valid_until"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 10
              },
              "feedback_webhook_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://"
              }
            },
            "required": [
              "api_key"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "credentials": {
                "type": "object",
                "properties": {
                  "accessKeyId": {
                    "type": "string"
                  },
                  "secretAccessKey": {
                    "type": "string"
                  },
                  "sessionToken": {
                    "type": "string"
                  }
                },
                "required": [
                  "accessKeyId",
                  "secretAccessKey"
                ],
                "additionalProperties": false
              },
              "configuration_set": {
                "type": "string"
              },
              "feedback_topic_arn": {
                "type": "string"
              }
            },
            "required": [],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "access_token": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.-]{16,4096}$"
              }
            },
            "required": [
              "access_token"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "project_id": {
                "type": "string"
              },
              "client_email": {
                "type": "string"
              },
              "private_key": {
                "type": "string"
              }
            },
            "required": [
              "project_id",
              "client_email",
              "private_key"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "team_id": {
                "type": "string"
              },
              "key_id": {
                "type": "string"
              },
              "topic": {
                "type": "string"
              },
              "environment": {
                "type": "string",
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "private_key": {
                "type": "string"
              }
            },
            "required": [
              "team_id",
              "key_id",
              "topic",
              "environment",
              "private_key"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "public_key": {
                "type": "string"
              },
              "private_key": {
                "type": "string"
              },
              "subject": {
                "type": "string"
              }
            },
            "required": [
              "public_key",
              "private_key",
              "subject"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Provider-specific server-only credential. Stored encrypted; never returned to customer UI or embed reads. Provider readback is independently required."
      },
      "CustomerProviderConnectRequest": {
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "provider": {
            "type": "string",
            "enum": [
              "resend",
              "ses",
              "expo",
              "fcm",
              "apns",
              "webpush"
            ]
          },
          "external_account_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "credential": {
            "$ref": "#/components/schemas/CustomerProviderCredential"
          },
          "idempotency_key": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,128}$"
          },
          "region": {
            "type": "string",
            "pattern": "^[a-z]{2}(?:-[a-z]+)+-[0-9]$"
          },
          "ownership": {
            "type": "string",
            "enum": [
              "byo",
              "managed"
            ],
            "default": "byo",
            "description": "'managed' is the platform-operated SES rail: the server supplies the account identity and credential; external_account_id and credential are omitted from the request."
          }
        },
        "required": [
          "scope",
          "provider",
          "idempotency_key"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "ownership": {
                  "const": "managed"
                }
              },
              "required": [
                "ownership"
              ]
            },
            "then": {
              "properties": {
                "provider": {
                  "const": "ses"
                }
              }
            },
            "else": {
              "required": [
                "external_account_id",
                "credential"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "provider": {
                  "const": "resend"
                }
              }
            },
            "then": {
              "properties": {
                "credential": {
                  "type": "object",
                  "properties": {
                    "api_key": {
                      "type": "string",
                      "pattern": "^re_[A-Za-z0-9_-]{8,256}$"
                    },
                    "webhook_keys": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "version": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9._:-]{1,64}$"
                          },
                          "secret": {
                            "type": "string",
                            "pattern": "^whsec_[A-Za-z0-9+/]{40,}={0,2}$"
                          },
                          "valid_from": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "valid_until": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "version",
                          "secret",
                          "valid_from",
                          "valid_until"
                        ],
                        "additionalProperties": false
                      },
                      "maxItems": 10
                    },
                    "feedback_webhook_url": {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https://"
                    }
                  },
                  "required": [
                    "api_key"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "provider": {
                  "const": "ses"
                }
              }
            },
            "then": {
              "properties": {
                "credential": {
                  "type": "object",
                  "properties": {
                    "credentials": {
                      "type": "object",
                      "properties": {
                        "accessKeyId": {
                          "type": "string"
                        },
                        "secretAccessKey": {
                          "type": "string"
                        },
                        "sessionToken": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "accessKeyId",
                        "secretAccessKey"
                      ],
                      "additionalProperties": false
                    },
                    "configuration_set": {
                      "type": "string"
                    },
                    "feedback_topic_arn": {
                      "type": "string"
                    }
                  },
                  "required": [],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "provider": {
                  "const": "expo"
                }
              }
            },
            "then": {
              "properties": {
                "credential": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_.-]{16,4096}$"
                    }
                  },
                  "required": [
                    "access_token"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "provider": {
                  "const": "fcm"
                }
              }
            },
            "then": {
              "properties": {
                "credential": {
                  "type": "object",
                  "properties": {
                    "project_id": {
                      "type": "string"
                    },
                    "client_email": {
                      "type": "string"
                    },
                    "private_key": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "project_id",
                    "client_email",
                    "private_key"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "provider": {
                  "const": "apns"
                }
              }
            },
            "then": {
              "properties": {
                "credential": {
                  "type": "object",
                  "properties": {
                    "team_id": {
                      "type": "string"
                    },
                    "key_id": {
                      "type": "string"
                    },
                    "topic": {
                      "type": "string"
                    },
                    "environment": {
                      "type": "string",
                      "enum": [
                        "sandbox",
                        "production"
                      ]
                    },
                    "private_key": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "team_id",
                    "key_id",
                    "topic",
                    "environment",
                    "private_key"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "provider": {
                  "const": "webpush"
                }
              }
            },
            "then": {
              "properties": {
                "credential": {
                  "type": "object",
                  "properties": {
                    "public_key": {
                      "type": "string"
                    },
                    "private_key": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "public_key",
                    "private_key",
                    "subject"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        ]
      },
      "CustomerProviderConnected": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "connection": {
            "$ref": "#/components/schemas/CustomerProviderConnection"
          },
          "replayed": {
            "type": "boolean"
          },
          "credential_reference": {
            "type": "string",
            "pattern": "^customer:"
          },
          "credential_version": {
            "type": "string",
            "format": "uuid"
          },
          "feedback_webhook_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri",
                "pattern": "^https://"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_action": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "scope",
          "connection",
          "replayed",
          "credential_reference",
          "credential_version",
          "feedback_webhook_url",
          "next_action"
        ],
        "additionalProperties": false
      },
      "CustomerProviderRotated": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "connection": {
            "$ref": "#/components/schemas/CustomerProviderConnection"
          },
          "credential_reference": {
            "type": "string",
            "pattern": "^customer:"
          },
          "credential_version": {
            "type": "string",
            "format": "uuid"
          },
          "next_action": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "scope",
          "connection",
          "credential_reference",
          "credential_version",
          "next_action"
        ],
        "additionalProperties": false
      },
      "CustomerProviderVerified": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "connection": {
            "$ref": "#/components/schemas/CustomerProviderConnection"
          },
          "evidence": {
            "type": "object",
            "properties": {
              "credential_access": {
                "type": "boolean"
              },
              "sending_enabled": {
                "type": "boolean"
              },
              "feedback_ready": {
                "type": "boolean"
              },
              "production_access": {
                "type": "boolean"
              },
              "evidence_reference": {
                "type": "string"
              },
              "observed_at": {
                "type": "string",
                "format": "date-time"
              },
              "region": {
                "type": "string"
              },
              "max_24_hour_send": {
                "type": "number",
                "minimum": 0
              },
              "sent_last_24_hours": {
                "type": "number",
                "minimum": 0
              },
              "max_send_rate": {
                "type": "number",
                "minimum": 0
              },
              "configuration_set": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "daily_limit_unlimited": {
                "type": "boolean"
              }
            },
            "required": [
              "credential_access",
              "sending_enabled",
              "feedback_ready",
              "production_access",
              "evidence_reference",
              "observed_at"
            ],
            "additionalProperties": false
          },
          "ownership": {
            "const": "credential_access_only"
          },
          "sender_ownership_required": {
            "const": true
          },
          "controlled_delivery_required": {
            "const": true
          }
        },
        "required": [
          "request_id",
          "scope",
          "connection",
          "evidence",
          "ownership",
          "sender_ownership_required",
          "controlled_delivery_required"
        ],
        "additionalProperties": false
      },
      "CustomerProviderDisconnected": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "disconnected": {
            "const": true
          },
          "preserved_accepted_evidence": {
            "const": true
          },
          "uncertain_work": {
            "const": "held_for_original_provider_reconciliation"
          }
        },
        "required": [
          "request_id",
          "disconnected",
          "preserved_accepted_evidence",
          "uncertain_work"
        ],
        "additionalProperties": false
      },
      "CustomerSenderResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "sender": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "identity": {
                "type": "string",
                "format": "email"
              },
              "status": {
                "const": "active"
              },
              "allowed_purposes": {
                "type": "array",
                "items": {
                  "const": "transactional"
                }
              },
              "provider_connection_id": {
                "type": "string",
                "format": "uuid"
              }
            },
            "required": [
              "id",
              "status"
            ],
            "additionalProperties": false
          },
          "replayed": {
            "type": "boolean"
          },
          "controlled_test_required": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "scope",
          "sender",
          "replayed"
        ],
        "additionalProperties": false
      },
      "CustomerFirstTest": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "test_id": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "$ref": "#/components/schemas/AcceptedMessage"
          },
          "recipient": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string",
                "format": "email"
              },
              "source": {
                "const": "verified_owner"
              }
            },
            "required": [
              "address",
              "source"
            ],
            "additionalProperties": false
          },
          "delivery": {
            "const": "await_signed_provider_evidence"
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "scope",
          "test_id",
          "message",
          "recipient",
          "delivery",
          "replayed"
        ],
        "additionalProperties": false
      },
      "PublicSiteConfiguration": {
        "type": "object",
        "properties": {
          "release_stage": {
            "type": "string",
            "enum": [
              "controlled_pilot",
              "general_availability"
            ]
          },
          "release_reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "canonical_origin": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri",
                "pattern": "^https://"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "legal_name": {
                    "type": "string"
                  },
                  "contact_email": {
                    "type": "string",
                    "format": "email"
                  },
                  "address": {
                    "type": "string"
                  }
                },
                "required": [
                  "legal_name",
                  "contact_email"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "policies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "privacy",
                    "terms",
                    "dpa",
                    "acceptable_use",
                    "subprocessors"
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://"
                },
                "review_reference": {
                  "type": "string"
                },
                "reviewed_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "kind",
                "url",
                "review_reference",
                "reviewed_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 5
          },
          "status": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https://"
                  },
                  "verified_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "url",
                  "verified_at"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "indexable": {
            "type": "boolean"
          }
        },
        "required": [
          "release_stage",
          "release_reference",
          "canonical_origin",
          "company",
          "policies",
          "status",
          "indexable"
        ],
        "additionalProperties": false
      },
      "PublicSiteResult": {
        "type": "object",
        "properties": {
          "site": {
            "$ref": "#/components/schemas/PublicSiteConfiguration"
          }
        },
        "required": [
          "site"
        ],
        "additionalProperties": false
      },
      "CustomerPricingExtras": {
        "type": "object",
        "properties": {
          "included_sending_domains": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "included_inboxes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "domain_pack": {
            "type": "object",
            "properties": {
              "domains": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000
              },
              "monthly_amount_minor": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000000
              }
            },
            "required": [
              "domains",
              "monthly_amount_minor"
            ],
            "additionalProperties": false
          },
          "extra_inbox": {
            "type": "object",
            "properties": {
              "monthly_amount_minor": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000000
              }
            },
            "required": [
              "monthly_amount_minor"
            ],
            "additionalProperties": false
          },
          "dedicated_ip": {
            "type": "object",
            "properties": {
              "monthly_amount_minor": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000000
              }
            },
            "required": [
              "monthly_amount_minor"
            ],
            "additionalProperties": false
          },
          "sso": {
            "type": "object",
            "properties": {
              "monthly_amount_minor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              }
            },
            "required": [
              "monthly_amount_minor"
            ],
            "additionalProperties": false
          },
          "automation": {
            "type": "object",
            "properties": {
              "included_runs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "overage_per_run_microunits": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              }
            },
            "required": [
              "included_runs",
              "overage_per_run_microunits"
            ],
            "additionalProperties": false
          }
        },
        "required": [],
        "additionalProperties": false,
        "dependentRequired": {
          "domain_pack": [
            "included_sending_domains"
          ],
          "extra_inbox": [
            "included_inboxes"
          ]
        }
      },
      "CustomerPricingPlan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{1,39}$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "currency": {
            "const": "USD"
          },
          "base_amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "included_handoffs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "overage_per_1000_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "critical_grace_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 7
          },
          "automatic_tax": {
            "type": "boolean"
          },
          "reviewed_at": {
            "type": "string",
            "format": "date-time"
          },
          "review_reference": {
            "type": "string"
          },
          "limits": {
            "type": "object",
            "properties": {
              "messages_per_day": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "recipients": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "applications": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "provider_connections": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              }
            },
            "required": [
              "messages_per_day",
              "recipients",
              "applications",
              "provider_connections"
            ],
            "additionalProperties": false
          },
          "extras": {
            "$ref": "#/components/schemas/CustomerPricingExtras"
          }
        },
        "required": [
          "id",
          "version",
          "name",
          "currency",
          "base_amount_minor",
          "included_handoffs",
          "overage_per_1000_minor",
          "critical_grace_days",
          "automatic_tax",
          "reviewed_at",
          "review_reference",
          "limits"
        ],
        "additionalProperties": false
      },
      "CustomerPricingCatalog": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "unconfigured",
              "reviewed"
            ]
          },
          "meter_version": {
            "const": "accepted-handoff-v1"
          },
          "formula": {
            "const": "base_plus_ceil_overage_blocks"
          },
          "byo_transport": {
            "const": "excluded"
          },
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerPricingPlan"
            },
            "maxItems": 20
          }
        },
        "required": [
          "status",
          "meter_version",
          "formula",
          "byo_transport",
          "plans"
        ],
        "additionalProperties": false
      },
      "PublicPricingResult": {
        "type": "object",
        "properties": {
          "catalog": {
            "$ref": "#/components/schemas/CustomerPricingCatalog"
          },
          "billing_configured": {
            "type": "boolean"
          }
        },
        "required": [
          "catalog",
          "billing_configured"
        ],
        "additionalProperties": false
      },
      "CustomerPlatformCharge": {
        "type": "object",
        "properties": {
          "handoffs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "included_handoffs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "overage_handoffs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "overage_blocks": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "base_amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "overage_amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "total_amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "currency": {
            "const": "USD"
          },
          "meter_version": {
            "const": "accepted-handoff-v1"
          },
          "taxes": {
            "const": "calculated_by_billing_provider"
          }
        },
        "required": [
          "handoffs",
          "included_handoffs",
          "overage_handoffs",
          "overage_blocks",
          "base_amount_minor",
          "overage_amount_minor",
          "total_amount_minor",
          "currency",
          "meter_version",
          "taxes"
        ],
        "additionalProperties": false
      },
      "CustomerBillingEntitlement": {
        "type": "object",
        "properties": {
          "admission": {
            "type": "string",
            "enum": [
              "legacy",
              "test",
              "active",
              "critical_grace",
              "suspended"
            ]
          },
          "grace_ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "critical_purposes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "authentication",
                "security",
                "transactional"
              ]
            },
            "maxItems": 3
          },
          "policy": {
            "const": "bounded_critical_grace_v1"
          },
          "source": {
            "const": "operator_comp"
          }
        },
        "required": [
          "admission",
          "grace_ends_at",
          "critical_purposes",
          "policy"
        ],
        "additionalProperties": false
      },
      "CustomerBillingOperatorAccount": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "tier": {
            "type": "string",
            "enum": [
              "test",
              "pilot",
              "commercial"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "onboarding",
              "active",
              "suspended",
              "closing",
              "closed"
            ]
          },
          "customer_kind": {
            "type": "string",
            "enum": [
              "internal",
              "independent"
            ]
          },
          "comp_granted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "tier",
          "status",
          "customer_kind",
          "comp_granted_at",
          "configuration_version"
        ],
        "additionalProperties": false
      },
      "CustomerBillingAccount": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "active",
              "past_due",
              "paused",
              "canceled",
              "unpaid",
              "incomplete",
              "incomplete_expired",
              "trialing"
            ]
          },
          "plan_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "plan_version": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "anyOf": [
              {
                "const": "USD"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_period_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_period_end": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "grace_ends_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancel_at_period_end": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          }
        },
        "required": [
          "organization_id",
          "state",
          "plan_id",
          "plan_version",
          "currency",
          "current_period_start",
          "current_period_end",
          "grace_ends_at",
          "cancel_at_period_end",
          "version"
        ],
        "additionalProperties": false
      },
      "CustomerInvoice": {
        "type": "object",
        "properties": {
          "invoice_id": {
            "type": "string",
            "pattern": "^in_[A-Za-z0-9]+$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "amount_paid_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "credit_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "refunded_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "refund_inconclusive": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "open",
              "paid",
              "uncollectible",
              "void"
            ]
          },
          "period_start": {
            "type": "string",
            "format": "date-time"
          },
          "period_end": {
            "type": "string",
            "format": "date-time"
          },
          "hosted_invoice_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri",
                "pattern": "^https://invoice\\.stripe\\.com/"
              },
              {
                "type": "null"
              }
            ]
          },
          "paid_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "observed_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "invoice_id",
          "currency",
          "amount_minor",
          "amount_paid_minor",
          "credit_minor",
          "refunded_minor",
          "refund_inconclusive",
          "status",
          "period_start",
          "period_end",
          "hosted_invoice_url",
          "paid_at",
          "observed_at"
        ],
        "additionalProperties": false
      },
      "CustomerBillingState": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "account": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerBillingAccount"
              },
              {
                "type": "null"
              }
            ]
          },
          "catalog": {
            "$ref": "#/components/schemas/CustomerPricingCatalog"
          },
          "entitlements": {
            "$ref": "#/components/schemas/CustomerBillingEntitlement"
          },
          "addons": {
            "type": "object",
            "properties": {
              "domain_pack": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  }
                },
                "required": [
                  "quantity"
                ],
                "additionalProperties": false
              },
              "extra_inbox": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  }
                },
                "required": [
                  "quantity"
                ],
                "additionalProperties": false
              },
              "dedicated_ip": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1
                  }
                },
                "required": [
                  "quantity"
                ],
                "additionalProperties": false
              },
              "sso": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1
                  }
                },
                "required": [
                  "quantity"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "domain_pack",
              "extra_inbox",
              "dedicated_ip",
              "sso"
            ],
            "additionalProperties": false
          },
          "pending_addon_change": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addon": {
                    "type": "string",
                    "enum": [
                      "domain_pack",
                      "extra_inbox",
                      "dedicated_ip",
                      "sso"
                    ]
                  },
                  "requested_quantity": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "payment_url": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https://invoice\\.stripe\\.com/"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "addon",
                  "requested_quantity",
                  "payment_url"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerInvoice"
            },
            "maxItems": 100
          },
          "external_transport_billing": {
            "const": true
          },
          "billing_configured": {
            "type": "boolean"
          },
          "portal_configured": {
            "type": "boolean"
          },
          "pending_checkout": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "plan_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "plan_version": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "operation_id",
                  "plan_id",
                  "plan_version",
                  "updated_at"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "account",
          "catalog",
          "entitlements",
          "addons",
          "pending_addon_change",
          "invoices",
          "external_transport_billing",
          "billing_configured",
          "portal_configured",
          "pending_checkout"
        ],
        "additionalProperties": false
      },
      "CustomerBillingAddonChange": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "addon": {
            "type": "string",
            "enum": [
              "domain_pack",
              "extra_inbox",
              "dedicated_ip",
              "sso"
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "status": {
            "type": "string",
            "enum": [
              "applied",
              "payment_pending"
            ]
          },
          "payment_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri",
                "pattern": "^https://invoice\\.stripe\\.com/"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "addon",
          "quantity",
          "status",
          "payment_url"
        ],
        "additionalProperties": false
      },
      "CustomerHandoffSpendControls": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "controls": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "overage_enabled": {
                    "type": "boolean"
                  },
                  "overage_limit_minor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "metered_handoffs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "in_flight_handoffs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "remaining_handoffs": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "overage_enabled",
                  "overage_limit_minor",
                  "version",
                  "metered_handoffs",
                  "in_flight_handoffs",
                  "remaining_handoffs"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "controls"
        ],
        "additionalProperties": false
      },
      "CustomerInvoiceList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "invoices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerInvoice"
            },
            "maxItems": 100
          },
          "limit": {
            "const": 100
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "invoices",
          "limit"
        ],
        "additionalProperties": false
      },
      "CustomerCheckout": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "pattern": "^cs_[A-Za-z0-9_]+$"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://checkout\\.stripe\\.com/"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "id",
          "url",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "CustomerBillingPortal": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://billing\\.stripe\\.com/"
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "url"
        ],
        "additionalProperties": false
      },
      "CustomerBillingCancel": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string"
          },
          "cancel_at_period_end": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "status"
        ],
        "additionalProperties": false
      },
      "CustomerUsage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "meter_version": {
            "const": "accepted-handoff-v1"
          },
          "units": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "byo_provider_costs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "provider_cost_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "included_in_platform_invoice": {
                  "const": false
                }
              },
              "required": [
                "currency",
                "provider_cost_microunits",
                "included_in_platform_invoice"
              ],
              "additionalProperties": false
            }
          },
          "charge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerPlatformCharge"
              },
              {
                "type": "null"
              }
            ]
          },
          "uncertain_handoffs": {
            "const": "excluded_until_provider_acceptance_evidence"
          },
          "external_transport_billing": {
            "const": true
          },
          "charge_basis": {
            "type": "string",
            "enum": [
              "current_subscription_period",
              "unavailable_for_range"
            ]
          },
          "automation": {
            "type": "object",
            "properties": {
              "meter_version": {
                "const": "workflow-run-v1"
              },
              "units": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "charge": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "runs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "included_runs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "overage_runs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "overage_per_run_microunits": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "overage_amount_minor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "currency": {
                        "const": "USD"
                      }
                    },
                    "required": [
                      "runs",
                      "included_runs",
                      "overage_runs",
                      "overage_per_run_microunits",
                      "overage_amount_minor",
                      "currency"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "meter_version",
              "units",
              "charge"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "meter_version",
          "units",
          "from",
          "to",
          "byo_provider_costs",
          "charge",
          "uncertain_handoffs",
          "external_transport_billing",
          "charge_basis"
        ],
        "additionalProperties": false
      },
      "CustomerUsageExport": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "meter_version": {
            "const": "accepted-handoff-v1"
          },
          "units": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "byo_provider_costs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "provider_cost_microunits": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "included_in_platform_invoice": {
                  "const": false
                }
              },
              "required": [
                "currency",
                "provider_cost_microunits",
                "included_in_platform_invoice"
              ],
              "additionalProperties": false
            }
          },
          "charge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerPlatformCharge"
              },
              {
                "type": "null"
              }
            ]
          },
          "uncertain_handoffs": {
            "const": "excluded_until_provider_acceptance_evidence"
          },
          "external_transport_billing": {
            "const": true
          },
          "charge_basis": {
            "type": "string",
            "enum": [
              "current_subscription_period",
              "unavailable_for_range"
            ]
          },
          "format": {
            "const": "csv"
          },
          "filename": {
            "const": "valosend-platform-usage.csv"
          },
          "content": {
            "type": "string"
          },
          "automation": {
            "type": "object",
            "properties": {
              "meter_version": {
                "const": "workflow-run-v1"
              },
              "units": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "charge": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "runs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "included_runs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "overage_runs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "overage_per_run_microunits": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "overage_amount_minor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000
                      },
                      "currency": {
                        "const": "USD"
                      }
                    },
                    "required": [
                      "runs",
                      "included_runs",
                      "overage_runs",
                      "overage_per_run_microunits",
                      "overage_amount_minor",
                      "currency"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "meter_version",
              "units",
              "charge"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "meter_version",
          "units",
          "from",
          "to",
          "byo_provider_costs",
          "charge",
          "uncertain_handoffs",
          "external_transport_billing",
          "charge_basis",
          "format",
          "filename",
          "content"
        ],
        "additionalProperties": false
      },
      "CustomerStripeEventResult": {
        "type": "object",
        "properties": {
          "received": {
            "const": true
          },
          "ignored": {
            "type": "boolean"
          },
          "replayed": {
            "type": "boolean"
          },
          "organization_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string"
          },
          "refund_evidence": {
            "type": "string",
            "enum": [
              "recorded",
              "inconclusive_shared_payment",
              "unmatched"
            ]
          }
        },
        "required": [
          "received"
        ],
        "additionalProperties": false
      },
      "CustomerBillingLine": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "invoice_id": {
            "type": "string"
          },
          "plan_id": {
            "type": "string"
          },
          "plan_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          },
          "meter_version": {
            "const": "accepted-handoff-v1"
          },
          "period_start": {
            "type": "string",
            "format": "date-time"
          },
          "period_end": {
            "type": "string",
            "format": "date-time"
          },
          "units": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "included_units": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "overage_blocks": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "amount_minor": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "currency": {
            "const": "USD"
          },
          "provider_line_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "prepared",
              "submitted",
              "uncertain",
              "rejected"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "organization_id",
          "invoice_id",
          "plan_id",
          "plan_version",
          "meter_version",
          "period_start",
          "period_end",
          "units",
          "included_units",
          "overage_blocks",
          "amount_minor",
          "currency",
          "provider_line_id",
          "state",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CustomerAutomationBillingLine": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "invoice_id": {
            "type": "string"
          },
          "plan_id": {
            "type": "string"
          },
          "plan_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          },
          "meter_version": {
            "const": "workflow-run-v1"
          },
          "period_start": {
            "type": "string",
            "format": "date-time"
          },
          "period_end": {
            "type": "string",
            "format": "date-time"
          },
          "units": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "included_units": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "overage_blocks": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "amount_minor": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "currency": {
            "const": "USD"
          },
          "provider_line_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "prepared",
              "submitted",
              "uncertain",
              "rejected"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "organization_id",
          "invoice_id",
          "plan_id",
          "plan_version",
          "meter_version",
          "period_start",
          "period_end",
          "units",
          "included_units",
          "overage_blocks",
          "amount_minor",
          "currency",
          "provider_line_id",
          "state",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CustomerPeriodSettlement": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "line": {
            "$ref": "#/components/schemas/CustomerBillingLine"
          },
          "automation_line": {
            "$ref": "#/components/schemas/CustomerAutomationBillingLine"
          },
          "replayed": {
            "type": "boolean"
          },
          "external_transport_included": {
            "const": false
          },
          "zero_overage": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "line"
        ],
        "additionalProperties": false
      },
      "CustomerCredit": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "adjustment_id": {
            "type": "string",
            "format": "uuid"
          },
          "amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "currency": {
            "const": "USD"
          },
          "state": {
            "const": "submitted"
          },
          "provider_credit_id": {
            "type": "string",
            "pattern": "^cn_[A-Za-z0-9]+$"
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "adjustment_id",
          "amount_minor",
          "currency",
          "state",
          "provider_credit_id"
        ],
        "additionalProperties": false
      },
      "CustomerPilotEvidence": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "unrelated_verified": {
            "type": "boolean"
          },
          "evidence_reference": {
            "type": "string"
          },
          "active_effort_minutes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "elapsed_setup_minutes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "interventions": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "compatibility_reference": {
            "type": "string"
          },
          "revocation_verified": {
            "type": "boolean"
          },
          "observed_from": {
            "type": "string",
            "format": "date-time"
          },
          "observed_to": {
            "type": "string",
            "format": "date-time"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "platform_cost_minor": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "support_cost_minor": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "model_cost_minor": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "provider_cost_minor": {
            "oneOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]+$"
              }
            ]
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          }
        },
        "required": [
          "organization_id",
          "unrelated_verified",
          "evidence_reference",
          "active_effort_minutes",
          "elapsed_setup_minutes",
          "interventions",
          "compatibility_reference",
          "revocation_verified",
          "observed_from",
          "observed_to",
          "currency",
          "platform_cost_minor",
          "support_cost_minor",
          "model_cost_minor",
          "provider_cost_minor",
          "recorded_at",
          "version"
        ],
        "additionalProperties": false
      },
      "CustomerPilot": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "evidence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerPilotEvidence"
              },
              {
                "type": "null"
              }
            ]
          },
          "commercial_gate": {
            "const": "requires_operator_verified_unrelated_customers_and_recurring_paid_invoices"
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "evidence",
          "commercial_gate"
        ],
        "additionalProperties": false
      },
      "CustomerPilotRecorded": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "recorded": {
            "const": true
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          },
          "paid_evidence_source": {
            "const": "verified_billing_provider_invoices"
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "recorded",
          "version",
          "paid_evidence_source"
        ],
        "additionalProperties": false
      },
      "CustomerPilotReport": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "unrelated_pilot_organizations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "recurring_paying_organizations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "required_unrelated_pilots": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "required_recurring_paying": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "counts_met": {
            "type": "boolean"
          },
          "economics_positive": {
            "type": "boolean"
          },
          "gate": {
            "type": "string",
            "enum": [
              "evidence_threshold_met_requires_owner_review",
              "not_met"
            ]
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "platform_revenue_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "platform_cost_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "support_cost_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "model_cost_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "external_provider_cost_minor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                },
                "contribution_minor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "currency",
                "platform_revenue_minor",
                "platform_cost_minor",
                "support_cost_minor",
                "model_cost_minor",
                "external_provider_cost_minor",
                "contribution_minor"
              ],
              "additionalProperties": false
            }
          },
          "byo_transport_excluded_from_platform_invoice": {
            "const": true
          },
          "paid_evidence_source": {
            "const": "live_processor_payment_receipts_net_of_credits_and_refunds"
          },
          "observed_at": {
            "type": "string",
            "format": "date-time"
          },
          "automatically_activates_managed_sending": {
            "const": false
          }
        },
        "required": [
          "request_id",
          "unrelated_pilot_organizations",
          "recurring_paying_organizations",
          "required_unrelated_pilots",
          "required_recurring_paying",
          "counts_met",
          "economics_positive",
          "gate",
          "currencies",
          "byo_transport_excluded_from_platform_invoice",
          "paid_evidence_source",
          "observed_at",
          "automatically_activates_managed_sending"
        ],
        "additionalProperties": false
      },
      "CustomerEmbedInstallation": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "application_id": {
            "type": "string",
            "format": "uuid"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ]
          },
          "brand_id": {
            "type": "string",
            "format": "uuid"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "domain_id": {
            "type": "string",
            "format": "uuid"
          },
          "origin": {
            "type": "string",
            "format": "uri"
          },
          "label": {
            "type": "string"
          },
          "service_credential_id": {
            "type": "string",
            "format": "uuid"
          },
          "issuer_user_id": {
            "type": "string",
            "format": "uuid"
          },
          "approved_aal": {
            "type": "string",
            "enum": [
              "aal1",
              "aal2"
            ]
          },
          "allow_provision": {
            "type": "boolean"
          },
          "origin_verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "organization_id",
          "application_id",
          "environment",
          "brand_id",
          "id",
          "domain_id",
          "origin",
          "label",
          "service_credential_id",
          "issuer_user_id",
          "approved_aal",
          "allow_provision",
          "origin_verified_at",
          "expires_at",
          "revoked_at",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CustomerEmbedInstallationCreated": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "installation": {
            "$ref": "#/components/schemas/CustomerEmbedInstallation"
          },
          "dns_challenge": {
            "type": "object",
            "properties": {
              "type": {
                "const": "TXT"
              },
              "name": {
                "type": "string"
              },
              "value": {
                "type": "string"
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "type",
              "name",
              "value",
              "expires_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "installation",
          "dns_challenge"
        ],
        "additionalProperties": false
      },
      "CustomerEmbedInstallationResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "installation": {
            "$ref": "#/components/schemas/CustomerEmbedInstallation"
          }
        },
        "required": [
          "request_id",
          "installation"
        ],
        "additionalProperties": false
      },
      "CustomerEmbedInstallations": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "installations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerEmbedInstallation"
            },
            "maxItems": 100
          }
        },
        "required": [
          "request_id",
          "installations"
        ],
        "additionalProperties": false
      },
      "CustomerEmbedSession": {
        "type": "object",
        "properties": {
          "session_token": {
            "type": "string",
            "pattern": "^ve1_[A-Za-z0-9_-]{43}$"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "origin": {
            "type": "string",
            "format": "uri"
          },
          "theme": {
            "type": "string",
            "enum": [
              "system",
              "light",
              "dark"
            ]
          },
          "locale": {
            "type": "string",
            "maxLength": 35
          }
        },
        "required": [
          "session_token",
          "expires_at",
          "origin",
          "theme",
          "locale"
        ],
        "additionalProperties": false
      },
      "CustomerEmbedSetup": {
        "type": "object",
        "properties": {
          "session": {
            "type": "object",
            "properties": {
              "expires_at": {
                "type": "string",
                "format": "date-time"
              },
              "theme": {
                "type": "string",
                "enum": [
                  "system",
                  "light",
                  "dark"
                ]
              },
              "locale": {
                "type": "string"
              },
              "host_brand": {
                "type": "string"
              },
              "origin": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "expires_at",
              "theme",
              "locale",
              "host_brand",
              "origin"
            ],
            "additionalProperties": false
          },
          "domain": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "domain": {
                "type": "string"
              },
              "provider": {
                "type": "string",
                "enum": [
                  "resend",
                  "ses"
                ]
              },
              "region": {
                "type": "string"
              },
              "configuration_version": {
                "type": "integer",
                "minimum": 1
              },
              "lifecycle": {
                "type": "string",
                "enum": [
                  "active",
                  "paused",
                  "removed"
                ]
              },
              "sending": {
                "$ref": "#/components/schemas/CapabilityReadiness"
              },
              "receiving": {
                "$ref": "#/components/schemas/CapabilityReadiness"
              },
              "tracking": {
                "$ref": "#/components/schemas/CapabilityReadiness"
              },
              "records": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DomainDnsRecord"
                }
              },
              "dmarc": {
                "type": "object",
                "properties": {
                  "host": {
                    "type": "string"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "found",
                      "missing",
                      "multiple",
                      "lookup_failed"
                    ]
                  },
                  "observed_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                },
                "required": [
                  "host",
                  "records",
                  "status",
                  "observed_at"
                ],
                "additionalProperties": false
              },
              "ownership_verified_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "provider_verified_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "domain",
              "provider",
              "region",
              "configuration_version",
              "lifecycle",
              "sending",
              "receiving",
              "tracking",
              "records",
              "dmarc",
              "ownership_verified_at",
              "provider_verified_at"
            ],
            "additionalProperties": false
          },
          "allowed_actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "check",
                "provision"
              ]
            },
            "maxItems": 2
          }
        },
        "required": [
          "session",
          "domain",
          "allowed_actions"
        ],
        "additionalProperties": false
      },
      "CustomerEmbedOperation": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "action": {
                "type": "string",
                "enum": [
                  "check",
                  "provision"
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "started",
                  "completed",
                  "failed",
                  "uncertain"
                ]
              },
              "result_code": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "replayed": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "action",
              "state",
              "result_code",
              "replayed"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "operation"
        ],
        "additionalProperties": false
      },
      "CustomerRetentionPolicy": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "reviewed": {
            "type": "boolean"
          },
          "delete_delay_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "evidence_retention_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "invoice_retention_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "backup_expiry_days": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "review_reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "version",
          "reviewed",
          "delete_delay_days",
          "evidence_retention_days",
          "invoice_retention_days",
          "backup_expiry_days",
          "review_reference"
        ],
        "additionalProperties": false
      },
      "CustomerExport": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "building",
              "ready",
              "blocked",
              "expired"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "page_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "row_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "acknowledged_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sha256_definition": {
            "const": "sha256-concatenated-page-canonical-json-utf8-v1"
          }
        },
        "required": [
          "id",
          "organization_id",
          "status",
          "created_at",
          "expires_at",
          "page_count",
          "row_count",
          "sha256",
          "acknowledged_at",
          "error_code",
          "sha256_definition"
        ],
        "additionalProperties": false
      },
      "CustomerExportRequested": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "export": {
            "$ref": "#/components/schemas/CustomerExport"
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "export",
          "replayed"
        ],
        "additionalProperties": false
      },
      "CustomerExportAcknowledged": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "export": {
            "$ref": "#/components/schemas/CustomerExport"
          }
        },
        "required": [
          "request_id",
          "export"
        ],
        "additionalProperties": false
      },
      "CustomerLifecycle": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "lifecycle": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "closing",
                  "deleting",
                  "deleted"
                ]
              },
              "closure_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "export_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "delete_after": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deleted_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "backup_expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "billing_status": {
                "type": "string"
              },
              "blockers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "last_error_code": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retention_policy": {
                "$ref": "#/components/schemas/CustomerRetentionPolicy"
              }
            },
            "required": [
              "status",
              "closure_id",
              "export_id",
              "delete_after",
              "blockers",
              "retention_policy"
            ],
            "additionalProperties": false
          },
          "exports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerExport"
            },
            "maxItems": 20
          },
          "holds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "reason_code": {
                  "type": "string"
                },
                "expires_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "reason_code",
                "expires_at"
              ],
              "additionalProperties": false
            }
          },
          "external_deletions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000000
                }
              },
              "required": [
                "status",
                "count"
              ],
              "additionalProperties": false
            }
          },
          "export_scope": {
            "type": "string"
          },
          "export_exclusions": {
            "type": "string"
          },
          "backup_erasure_claimed": {
            "const": false
          }
        },
        "required": [
          "request_id",
          "organization_id",
          "lifecycle",
          "exports",
          "holds",
          "external_deletions",
          "export_scope",
          "export_exclusions",
          "backup_erasure_claimed"
        ],
        "additionalProperties": false
      },
      "CustomerExportPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "export": {
            "$ref": "#/components/schemas/CustomerExport"
          },
          "page": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 999
              },
              "canonical_json": {
                "type": "string"
              },
              "sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "row_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000000
              },
              "captured_at": {
                "type": "string",
                "format": "date-time"
              },
              "records": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string"
                    },
                    "record": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "required": [
                    "source",
                    "record"
                  ],
                  "additionalProperties": false,
                  "description": "Fields are selected by the pinned classified server export manifest, not arbitrary tenant-selected SQL. Credentials and message bodies are excluded."
                },
                "maxItems": 100
              },
              "next_page": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 999
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "index",
              "canonical_json",
              "sha256",
              "row_count",
              "captured_at",
              "records",
              "next_page"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "export",
          "page"
        ],
        "additionalProperties": false
      },
      "CustomerClosure": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "closure_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "closing",
              "deleting",
              "deleted"
            ]
          },
          "replayed": {
            "type": "boolean"
          },
          "delivery_revoked": {
            "const": true
          },
          "cancelled_unsent": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "delete_after": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "backup_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "irreversible": {
            "const": true
          }
        },
        "required": [
          "request_id",
          "closure_id",
          "status",
          "replayed",
          "delivery_revoked"
        ],
        "additionalProperties": false
      },
      "CustomerEventDestination": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "key_version": {
            "type": "string",
            "format": "uuid"
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "key_valid_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "pending_review": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "url",
          "status",
          "key_version",
          "configuration_version",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CustomerEventDestinationResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "endpoint": {
            "$ref": "#/components/schemas/CustomerEventDestination"
          }
        },
        "required": [
          "request_id",
          "scope",
          "endpoint"
        ],
        "additionalProperties": false
      },
      "CustomerEventDestinationList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "endpoints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerEventDestination"
            },
            "maxItems": 100
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "request_id",
          "scope",
          "endpoints",
          "as_of"
        ],
        "additionalProperties": false
      },
      "CustomerEventKeyDisclosure": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "endpoint": {
            "$ref": "#/components/schemas/CustomerEventDestination"
          },
          "signing_key": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string",
                "format": "uuid"
              },
              "secret_base64": {
                "type": "string",
                "pattern": "^[A-Za-z0-9+/]{43}=$"
              },
              "valid_from": {
                "type": "string",
                "format": "date-time"
              },
              "valid_until": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "version",
              "secret_base64",
              "valid_from",
              "valid_until"
            ],
            "additionalProperties": false
          },
          "disclosure": {
            "type": "string",
            "enum": [
              "once",
              "unavailable_on_replay"
            ]
          }
        },
        "required": [
          "request_id",
          "scope",
          "endpoint",
          "disclosure"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "disclosure": {
                  "const": "once"
                }
              }
            },
            "then": {
              "required": [
                "signing_key"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "disclosure": {
                  "const": "unavailable_on_replay"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "signing_key"
                ]
              }
            }
          }
        ]
      },
      "CustomerRecipient": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "external_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128
              },
              {
                "type": "null"
              }
            ]
          },
          "endpoints": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "channel": {
                  "type": "string",
                  "enum": [
                    "email",
                    "push",
                    "sms",
                    "whatsapp"
                  ]
                },
                "address": {
                  "type": "string",
                  "maxLength": 4096
                },
                "verified_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "expires_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "channel",
                "address",
                "verified_at",
                "expires_at",
                "status"
              ],
              "additionalProperties": true
            }
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "external_id",
          "endpoints",
          "permissions"
        ],
        "additionalProperties": true
      },
      "CustomerPermissionTopic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "push",
              "sms",
              "whatsapp"
            ]
          },
          "purpose": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "consent_max_age_seconds": {
            "type": "integer",
            "minimum": 60,
            "maximum": 315360000
          },
          "recipient_editable": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          }
        },
        "required": [
          "id",
          "key",
          "label",
          "channel",
          "purpose",
          "consent_max_age_seconds",
          "recipient_editable",
          "status"
        ],
        "additionalProperties": false
      },
      "CustomerPermissionTopicResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "topic": {
            "$ref": "#/components/schemas/CustomerPermissionTopic"
          }
        },
        "required": [
          "request_id",
          "topic"
        ],
        "additionalProperties": false
      },
      "CustomerRecipientList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerRecipient"
            },
            "maxItems": 500
          },
          "topics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerPermissionTopic"
            }
          },
          "authority": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "request_id",
          "recipients",
          "topics",
          "authority"
        ],
        "additionalProperties": false
      },
      "CustomerRecipientResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "recipient": {
            "$ref": "#/components/schemas/CustomerRecipient"
          }
        },
        "required": [
          "request_id",
          "recipient"
        ],
        "additionalProperties": false
      },
      "CustomerRecipientEndpoint": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "endpoint": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "request_id",
          "endpoint"
        ],
        "additionalProperties": false
      },
      "CustomerPermissionResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "permission": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": true
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "request_id",
          "permission",
          "outcome"
        ],
        "additionalProperties": false
      },
      "CustomerCredentialList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "credentials": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "maxLength": 80
                },
                "kind": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "expires_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "revoked_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "grants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "messages:send",
                          "messages:read",
                          "content:read",
                          "workflows:trigger",
                          "recipients:manage",
                          "setup:manage"
                        ]
                      },
                      "purpose": {
                        "type": "string",
                        "pattern": "^\\*$|^[a-z][a-z0-9_.-]{0,63}$"
                      },
                      "lane": {
                        "type": "string",
                        "enum": [
                          "standard",
                          "bulk",
                          "critical"
                        ]
                      }
                    },
                    "required": [
                      "action",
                      "purpose",
                      "lane"
                    ],
                    "additionalProperties": false
                  },
                  "maxItems": 32
                }
              },
              "required": [
                "id",
                "name",
                "kind",
                "status",
                "expires_at",
                "created_at",
                "revoked_at",
                "grants"
              ],
              "additionalProperties": true
            },
            "maxItems": 100
          }
        },
        "required": [
          "request_id",
          "credentials"
        ],
        "additionalProperties": false
      },
      "CustomerCredentialResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "credential": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "maxLength": 80
              },
              "kind": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "revoked_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "grants": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "action": {
                      "type": "string",
                      "enum": [
                        "messages:send",
                        "messages:read",
                        "content:read",
                        "workflows:trigger",
                        "recipients:manage",
                        "setup:manage"
                      ]
                    },
                    "purpose": {
                      "type": "string",
                      "pattern": "^\\*$|^[a-z][a-z0-9_.-]{0,63}$"
                    },
                    "lane": {
                      "type": "string",
                      "enum": [
                        "standard",
                        "bulk",
                        "critical"
                      ]
                    }
                  },
                  "required": [
                    "action",
                    "purpose",
                    "lane"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 32
              }
            },
            "required": [
              "id",
              "name",
              "kind",
              "status",
              "expires_at",
              "created_at",
              "revoked_at",
              "grants"
            ],
            "additionalProperties": true
          },
          "secret": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "credential",
          "secret"
        ],
        "additionalProperties": false
      },
      "ProviderCallbackResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "event_id": {
            "type": "string",
            "format": "uuid"
          },
          "message_id": {
            "type": "string",
            "format": "uuid"
          },
          "duplicate": {
            "type": "boolean"
          },
          "projected_status": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "event_id",
          "message_id",
          "duplicate",
          "projected_status"
        ],
        "additionalProperties": false
      },
      "OwnerTestMailboxEvidence": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/LogicalScope"
          },
          "test_id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "mailbox_received",
              "awaiting_mailbox_evidence"
            ]
          },
          "observed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "scope",
          "test_id",
          "state",
          "observed_at"
        ],
        "additionalProperties": false
      },
      "Contact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "external_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "maxLength": 320
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "properties": {
            "type": "object",
            "maxProperties": 50,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$",
              "not": {
                "enum": [
                  "constructor",
                  "prototype"
                ]
              }
            },
            "additionalProperties": {
              "oneOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "number"
                }
              ]
            }
          },
          "property_overrides": {
            "type": "object",
            "maxProperties": 50,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$",
              "not": {
                "enum": [
                  "constructor",
                  "prototype"
                ]
              }
            },
            "additionalProperties": {
              "oneOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "number"
                }
              ]
            }
          }
        },
        "required": [
          "id",
          "external_id",
          "email",
          "status",
          "first_name",
          "last_name",
          "properties",
          "property_overrides"
        ],
        "additionalProperties": false
      },
      "ContactList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Contact"
            },
            "maxItems": 100
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "data",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "ContactResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "external_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "maxLength": 320
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "first_name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "last_name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "properties": {
            "type": "object",
            "maxProperties": 50,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$",
              "not": {
                "enum": [
                  "constructor",
                  "prototype"
                ]
              }
            },
            "additionalProperties": {
              "oneOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "number"
                }
              ]
            }
          },
          "property_overrides": {
            "type": "object",
            "maxProperties": 50,
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$",
              "not": {
                "enum": [
                  "constructor",
                  "prototype"
                ]
              }
            },
            "additionalProperties": {
              "oneOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "number"
                }
              ]
            }
          }
        },
        "required": [
          "request_id",
          "id",
          "external_id",
          "email",
          "status",
          "first_name",
          "last_name",
          "properties",
          "property_overrides"
        ],
        "additionalProperties": false
      },
      "ContactProperty": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$",
            "not": {
              "enum": [
                "constructor",
                "prototype"
              ]
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "number"
            ]
          },
          "fallback": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "key",
          "type",
          "fallback"
        ],
        "additionalProperties": false
      },
      "ContactPropertyList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactProperty"
            },
            "maxItems": 100
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "data",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "ContactPropertyResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$",
            "not": {
              "enum": [
                "constructor",
                "prototype"
              ]
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "number"
            ]
          },
          "fallback": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "string",
                    "maxLength": 500
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "id",
          "key",
          "type",
          "fallback"
        ],
        "additionalProperties": false
      },
      "Segment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "SegmentList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Segment"
            },
            "maxItems": 100
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "data",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "SegmentResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "request_id",
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "ContactTopic": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "recipient_editable": {
            "type": "boolean"
          },
          "decision": {
            "type": "string",
            "enum": [
              "granted",
              "denied",
              "unknown"
            ]
          },
          "freshness": {
            "type": "string",
            "enum": [
              "current",
              "denied",
              "expired",
              "stale",
              "unknown"
            ]
          }
        },
        "required": [
          "id",
          "key",
          "label",
          "purpose",
          "status",
          "recipient_editable",
          "decision",
          "freshness"
        ],
        "additionalProperties": false
      },
      "ContactTopicList": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactTopic"
            },
            "maxItems": 100
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "data",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "ContactMutationReceipt": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "request_id",
          "id"
        ],
        "additionalProperties": false
      },
      "CampaignDefinition": {
        "type": "object",
        "properties": {
          "sender_id": {
            "type": "string",
            "format": "uuid"
          },
          "topic_key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_.-]{0,63}$"
          },
          "content": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InlineEmailContent"
              },
              {
                "$ref": "#/components/schemas/TemplateContent"
              }
            ]
          },
          "audience": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "recipient_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 25,
                    "uniqueItems": true
                  }
                },
                "required": [
                  "recipient_ids"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "include_segment_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "minItems": 1,
                    "maxItems": 16,
                    "uniqueItems": true
                  },
                  "exclude_segment_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "minItems": 0,
                    "maxItems": 16,
                    "uniqueItems": true
                  }
                },
                "required": [
                  "include_segment_ids"
                ],
                "additionalProperties": false
              }
            ]
          },
          "max_cost_microunits_per_recipient": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "required": [
          "sender_id",
          "content",
          "audience",
          "max_cost_microunits_per_recipient"
        ],
        "additionalProperties": false
      },
      "Campaign": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "launched",
              "cancelled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "launched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "version",
          "state",
          "created_at",
          "updated_at",
          "launched_at",
          "scheduled_at",
          "cancelled_at"
        ],
        "additionalProperties": false
      },
      "CampaignMutation": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "launched",
              "cancelled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "launched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "request_id",
          "id",
          "name",
          "version",
          "state",
          "created_at",
          "updated_at",
          "launched_at",
          "scheduled_at",
          "cancelled_at"
        ],
        "additionalProperties": false
      },
      "CampaignDetail": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "launched",
              "cancelled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "launched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "definition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CampaignDefinition"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "id",
          "name",
          "version",
          "state",
          "created_at",
          "updated_at",
          "launched_at",
          "scheduled_at",
          "cancelled_at",
          "definition"
        ],
        "additionalProperties": false
      },
      "CampaignPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "campaigns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            },
            "maxItems": 50
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          }
        },
        "required": [
          "request_id",
          "campaigns",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "CampaignPreview": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "review_id": {
            "type": "string",
            "format": "uuid"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "message": {
            "type": "object",
            "properties": {
              "subject": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "html": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "unsubscribe_footer": {
                "const": true
              }
            },
            "required": [
              "subject",
              "text",
              "html",
              "unsubscribe_footer"
            ],
            "additionalProperties": false
          },
          "audience": {
            "type": "object",
            "properties": {
              "selected_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 25
              },
              "eligible_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 25
              },
              "skipped_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 25
              }
            },
            "required": [
              "selected_count",
              "eligible_count",
              "skipped_count"
            ],
            "additionalProperties": false
          },
          "maximum_admission_cost_microunits": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "request_id",
          "campaign_id",
          "version",
          "review_id",
          "expires_at",
          "scheduled_at",
          "message",
          "audience",
          "maximum_admission_cost_microunits"
        ],
        "additionalProperties": false
      },
      "CampaignEvidence": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "launched",
              "cancelled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "launched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "recipient_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "message_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "skip_reason": {
                  "enum": [
                    null,
                    "recipient_denied",
                    "recipient_suppressed",
                    "duplicate_destination"
                  ]
                },
                "delivery_status": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DeliveryStatus"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "accepted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "provider_accepted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "delivered_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              },
              "required": [
                "recipient_id",
                "message_id",
                "skip_reason",
                "delivery_status",
                "accepted_at",
                "provider_accepted_at",
                "delivered_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 25
          }
        },
        "required": [
          "request_id",
          "id",
          "name",
          "version",
          "state",
          "created_at",
          "updated_at",
          "launched_at",
          "scheduled_at",
          "cancelled_at",
          "recipients"
        ],
        "additionalProperties": false
      },
      "CampaignLaunch": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "launched",
              "cancelled"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "launched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "scheduled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "recipient_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "message_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid"
                },
                "skip_reason": {
                  "enum": [
                    null,
                    "recipient_denied",
                    "recipient_suppressed",
                    "duplicate_destination"
                  ]
                },
                "delivery_status": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/DeliveryStatus"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "accepted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "provider_accepted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "delivered_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              },
              "required": [
                "recipient_id",
                "message_id",
                "skip_reason",
                "delivery_status",
                "accepted_at",
                "provider_accepted_at",
                "delivered_at"
              ],
              "additionalProperties": false
            },
            "maxItems": 25
          },
          "replayed": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "id",
          "name",
          "version",
          "state",
          "created_at",
          "updated_at",
          "launched_at",
          "scheduled_at",
          "cancelled_at",
          "recipients",
          "replayed"
        ],
        "additionalProperties": false
      }
    }
  }
}
