{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "Lettercape development API",
    "version": "0.1.0",
    "description": "Implemented development routes. Public launch, all65 baseline requirements and13 gates remain incomplete. Blocked operations do not imply provider/billing/sending success."
  },
  "servers": [
    {
      "url": "/",
      "description": "Current deployment origin; no production destination is declared"
    }
  ],
  "paths": {
    "/v1/email-series": {
      "get": {
        "operationId": "listEmailSeries",
        "summary": "list email series",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSeriesPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "createEmailSeries",
        "summary": "create email series",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEmailSeriesInput"
              },
              "example": {
                "title": "Welcome series",
                "emails": [
                  {
                    "title": "Welcome",
                    "spec": {
                      "schema_version": "1.0",
                      "editing_mode": "structured",
                      "locale": "en-US",
                      "direction": "ltr",
                      "subject": "",
                      "preheader": "",
                      "brand_kit_version_id": "11111111-1111-4111-8111-111111111111",
                      "theme": {
                        "content_width_px": 600,
                        "background": "#F7F6F2",
                        "accent": "#0B625D",
                        "font_stack": "Arial, sans-serif"
                      },
                      "sections": [
                        {
                          "id": "hero",
                          "type": "hero",
                          "heading": "Your next story starts here",
                          "text": "Add the offer, details and approved facts your readers need."
                        },
                        {
                          "id": "body",
                          "type": "text",
                          "text": "Write something worth opening."
                        },
                        {
                          "id": "cta",
                          "type": "button",
                          "label": "Explore",
                          "href": "https://example.com"
                        },
                        {
                          "id": "footer",
                          "type": "legal_footer",
                          "identity": "Example brand",
                          "address": "",
                          "unsubscribe_slot": true
                        }
                      ]
                    },
                    "delay_hours": 0
                  },
                  {
                    "title": "Follow up",
                    "spec": {
                      "schema_version": "1.0",
                      "editing_mode": "structured",
                      "locale": "en-US",
                      "direction": "ltr",
                      "subject": "Your next step",
                      "preheader": "",
                      "brand_kit_version_id": "11111111-1111-4111-8111-111111111111",
                      "theme": {
                        "content_width_px": 600,
                        "background": "#F7F6F2",
                        "accent": "#0B625D",
                        "font_stack": "Arial, sans-serif"
                      },
                      "sections": [
                        {
                          "id": "hero",
                          "type": "hero",
                          "heading": "Your next story starts here",
                          "text": "Add the offer, details and approved facts your readers need."
                        },
                        {
                          "id": "body",
                          "type": "text",
                          "text": "Write something worth opening."
                        },
                        {
                          "id": "cta",
                          "type": "button",
                          "label": "Explore",
                          "href": "https://example.com"
                        },
                        {
                          "id": "footer",
                          "type": "legal_footer",
                          "identity": "Example brand",
                          "address": "",
                          "unsubscribe_slot": true
                        }
                      ]
                    },
                    "delay_hours": 24
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSeriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/email-series/{id}": {
      "get": {
        "operationId": "getEmailSeries",
        "summary": "get email series",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSeriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "patch": {
        "operationId": "updateEmailSeries",
        "summary": "update email series",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"series-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged independent series version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEmailSeriesInput"
              },
              "example": {
                "title": "Reviewed welcome series",
                "steps": [
                  {
                    "email_id": "11111111-1111-4111-8111-111111111111",
                    "delay_hours": 0
                  },
                  {
                    "email_id": "22222222-2222-4222-8222-222222222222",
                    "delay_hours": 24
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSeriesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/series": {
      "get": {
        "operationId": "getEmailSeriesMembership",
        "summary": "get email series membership",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSeriesMembershipResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/assets": {
      "get": {
        "operationId": "listAssets",
        "summary": "list assets",
        "description": "Bounded private library metadata. Hidden assets are omitted. Signed cursors bind the authenticated actor and workspace; no public image URLs are created.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/assets/uploads": {
      "post": {
        "operationId": "createAssetUpload",
        "summary": "create asset upload",
        "description": "Reserve a bounded private upload with explicit rights attestation. Preserve the acknowledged token privately. Readiness requires actual clean scanning and isolated decoding; no image is ready merely because an intent was admitted.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetUploadInput"
              },
              "example": {
                "filename": "example.png",
                "declared_mime": "image/png",
                "byte_size": 1024,
                "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                "rights": {
                  "attested": true,
                  "terms_version": "local-upload-attestation-v1"
                },
                "alt": "Example product",
                "decorative": false
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetUploadResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/assets/uploads/{uploadId}/content": {
      "put": {
        "operationId": "uploadAssetContent",
        "summary": "upload asset content",
        "description": "Dedicated streamed binary route with a 20 MiB raw limit, admitted digest/size and actor-bound token. Acknowledgment means durable quarantine/queued processing, not readiness. Explicit recovery uses the same upload ID/token/exact bytes; there is no automatic mutation retry.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "uploadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Upload-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "description": "Actor/workspace-bound upload token from the acknowledged intent. Preserve this token, upload ID and exact bytes for explicit transfer recovery."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Raw uncompressed bytes, exactly matching the admitted digest and size; 20 MiB maximum. No JSON, base64 or multipart encoding. Transfer retry is explicit and uses the same upload ID/token/bytes.",
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary",
                "minLength": 1,
                "maxLength": 20971520
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetUploadContentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/assets/{id}": {
      "get": {
        "operationId": "getAsset",
        "summary": "get asset",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/assets/{id}/variants/{variantId}/content": {
      "get": {
        "operationId": "getAssetVariantContent",
        "summary": "get asset variant content",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Authorized immutable private derivative bytes. No public hosting or original-byte access.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "const": "private, no-store"
                }
              }
            },
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/assets/{id}/fallback": {
      "post": {
        "operationId": "createAssetFallback",
        "summary": "create asset fallback",
        "description": "Queue a deterministic fully composited GIF frame. Preserve the existing immutable variant until processing succeeds; stale asset versions return412.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"asset-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged asset version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetFallbackInput"
              },
              "example": {
                "selected_frame": 0
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetFallbackResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/assets/{id}/remove": {
      "post": {
        "operationId": "removeAsset",
        "summary": "remove asset",
        "description": "Hide an asset from the private library while preserving bytes pinned by existing revisions. This is not physical erasure.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/assets/{id}/publish": {
      "post": {
        "operationId": "publishAsset",
        "summary": "publish asset",
        "description": "Always unavailable in this local slice:503 ASSET_PUBLICATION_NOT_CONFIGURED. No public CDN, hosted-image lifetime or production publication is claimed.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reserved shape; the current development command always returns a documented provider/release error.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "assets:write"
        ],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/sender-identities": {
      "get": {
        "operationId": "listSenderIdentities",
        "summary": "list sender identities",
        "description": "Current Owner/Admin only. Provider-bound drafts have no credentials; connection and sending remain disabled.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderIdentitiesPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "sender:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "createSenderIdentity",
        "summary": "create sender identity",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SenderDraftInput"
              },
              "example": {
                "name": "Example sender draft",
                "provider": "ses",
                "account_label": "Example account label",
                "region": "us-east-1",
                "from_name": "Example brand",
                "from_address": "news@example.test",
                "reply_to": null
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "sender:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/sender-identities/{id}": {
      "get": {
        "operationId": "getSenderIdentity",
        "summary": "get sender identity",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "sender:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/sender-identities/{id}/versions": {
      "get": {
        "operationId": "listSenderVersions",
        "summary": "list sender versions",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderVersionsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "sender:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "saveSenderVersion",
        "summary": "save sender version",
        "description": "Exact acknowledged sender version. Provider/account/region/address changes never inherit old DNS evidence or activate sending.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SenderVersionInput"
              },
              "example": {
                "name": "Updated sender draft",
                "provider": "ses",
                "account_label": "Example account label",
                "region": "us-east-1",
                "from_name": "Example brand",
                "from_address": "news@example.test",
                "reply_to": null,
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderVersionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "sender:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/sender-identities/{id}/dns-checks": {
      "get": {
        "operationId": "listSenderDNSChecks",
        "summary": "list sender d n s checks",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderDNSChecksPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "sender:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "checkSenderDNS",
        "summary": "check sender d n s",
        "description": "Bounded read-only exact-domain SPF/DMARC TXT discovery;5second owned resolver deadline,10checks/minute/workspace excluding replay. No DKIM, full protocol evaluation, ownership, provider acceptance or aligned received-message authentication claim. Sending stays disabled.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SenderCheckInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DNSCheckResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "sender:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/invitation-requests": {
      "get": {
        "operationId": "listInvitationRequests",
        "summary": "list invitation requests",
        "description": "Owner/Admin session planning records only; no invitation is sent, accepted, credentialed or seat-reserved.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationRequestsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "createInvitationRequest",
        "summary": "create invitation request",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationCreateInput"
              },
              "example": {
                "request_id": "11111111-1111-4111-8111-111111111111",
                "email": "proposed@example.test",
                "role": "Editor",
                "notes": "Planning only; not sent.",
                "review_due_at": null
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/invitation-requests/readiness": {
      "get": {
        "operationId": "getInvitationPlanningContext",
        "summary": "get invitation planning context",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationPlanningResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/invitation-requests/{id}": {
      "get": {
        "operationId": "getInvitationRequest",
        "summary": "get invitation request",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationRequestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/invitation-requests/{id}/history": {
      "get": {
        "operationId": "listInvitationRequestHistory",
        "summary": "list invitation request history",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationRequestHistoryPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/invitation-requests/{id}/update": {
      "post": {
        "operationId": "updateInvitationRequest",
        "summary": "update invitation request",
        "description": "CAS/keyed noncredential planning transition. No membership or editing-seat count changes. Admin cannot manage Billing requests.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationUpdateInput"
              },
              "example": {
                "email": "proposed@example.test",
                "role": "Viewer",
                "notes": "Updated proposal; no access grant.",
                "review_due_at": "2026-11-01T12:00:00Z",
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/invitation-requests/{id}/withdraw": {
      "post": {
        "operationId": "withdrawInvitationRequest",
        "summary": "withdraw invitation request",
        "description": "CAS/keyed noncredential planning transition. No membership or editing-seat count changes. Admin cannot manage Billing requests.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationStateInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/invitation-requests/{id}/reopen": {
      "post": {
        "operationId": "reopenInvitationRequest",
        "summary": "reopen invitation request",
        "description": "CAS/keyed noncredential planning transition. No membership or editing-seat count changes. Admin cannot manage Billing requests.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvitationStateInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitationCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/invitation-requests/{id}/send": {
      "post": {
        "operationId": "sendInvitationRequest",
        "summary": "send invitation request",
        "description": "Always refuses409 INVITATION_DELIVERY_DISABLED. No delivery, credential, membership, seat reservation or commercial policy is enabled.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/invitation-requests/{id}/accept": {
      "post": {
        "operationId": "acceptInvitationRequest",
        "summary": "accept invitation request",
        "description": "Always refuses409 INVITATION_ACCEPTANCE_DISABLED. No delivery, credential, membership, seat reservation or commercial policy is enabled.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/memberships": {
      "get": {
        "operationId": "listMemberships",
        "summary": "list memberships",
        "description": "Current Owner/Admin session; tenant-bound membership metadata only, no provider identity lookup.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembersPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/membership-changes": {
      "get": {
        "operationId": "listMembershipChanges",
        "summary": "list membership changes",
        "description": "Immutable local membership and editing-seat impact; no Stripe reconciliation claim.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberChangesPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/memberships/summary": {
      "get": {
        "operationId": "getMembershipSummary",
        "summary": "get membership summary",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipSummaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/memberships/{id}/role": {
      "post": {
        "operationId": "changeMembershipRole",
        "summary": "change membership role",
        "description": "Current manager session plus recent verified MFA in production; current member CAS. Admin cannot touch Owner/Billing or grant Billing. Positive editing quantity requires approved capacity; no prices are assigned.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleChangeInput"
              },
              "example": {
                "role": "Viewer",
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "demotion"
      }
    },
    "/v1/memberships/{id}/remove": {
      "post": {
        "operationId": "removeMembership",
        "summary": "remove membership",
        "description": "Current manager/MFA/CAS and explicit removal acknowledgment; final Owner cannot leave. Revokes issued keys, cancels queued creation and requests running cancellation. In-flight provider context and global identity/collaboration revocation remain separate obligations.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveMemberInput"
              },
              "example": {
                "expected_version": 1,
                "acknowledge": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/memberships/{id}/transfer-owner": {
      "post": {
        "operationId": "transferWorkspaceOwnership",
        "summary": "transfer workspace ownership",
        "description": "Current Owner/MFA/target-and-initiator CAS plus explicit acknowledgment. Atomically promotes existing active editing member and demotes initiator to Admin. No approved capacity/billing/provider success implied.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferOwnerInput"
              },
              "example": {
                "expected_version": 1,
                "expected_owner_version": 1,
                "acknowledge": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/webhook-deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "summary": "list webhook deliveries",
        "description": "Redacted durable receipts; started/authorized are not HTTP submission or email delivery evidence.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "endpoint_id",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "enum": [
                "pending",
                "leased",
                "acknowledged",
                "blocked",
                "terminal",
                "dead_letter",
                "disabled"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveriesPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/webhook-deliveries/{id}": {
      "get": {
        "operationId": "getWebhookDelivery",
        "summary": "get webhook delivery",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/webhook-deliveries/{id}/attempts": {
      "get": {
        "operationId": "listWebhookAttempts",
        "summary": "list webhook attempts",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookAttemptsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/webhook-deliveries/{id}/replay": {
      "post": {
        "operationId": "replayWebhookDelivery",
        "summary": "replay webhook delivery",
        "description": "Explicit duplicate-effect acknowledgment and current attempt CAS. Same logical event/delivery and original24h budget; acknowledged/leased/expired/revoked receipts cannot be replayed. Worker activation remains disabled.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookReplayInput"
              },
              "example": {
                "expected_attempt": 1,
                "acknowledge_duplicate_effect": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/webhook-endpoints": {
      "get": {
        "operationId": "listWebhookEndpoints",
        "summary": "list webhook endpoints",
        "description": "Current Owner/Admin and explicit bearer webhook read scope; query credentials and wrapped signing keys are excluded.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "createWebhookEndpoint",
        "summary": "create webhook endpoint",
        "description": "DNS-only public HTTPS target validation, encrypted secret shown once outside replay receipts. Endpoint stays paused; no target availability, external delivery or TLS conformance claim.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointInput"
              },
              "example": {
                "name": "Example paused receiver",
                "url": "https://example.org/webhook",
                "subscriptions": [
                  "contact.unsubscribed"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/webhook-endpoints/{id}": {
      "get": {
        "operationId": "getWebhookEndpoint",
        "summary": "get webhook endpoint",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/webhook-endpoints/{id}/rotate": {
      "post": {
        "operationId": "rotateWebhookEndpoint",
        "summary": "rotate webhook endpoint",
        "description": "CAS current endpoint version. Proposed development overlap24h; early retirement requires explicit consumer-cutover acknowledgment. Replay never recovers a secret.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookRotateInput"
              },
              "example": {
                "expected_version": 1,
                "retire_previous": false,
                "acknowledge_key_cutover": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/webhook-endpoints/{id}/pause": {
      "post": {
        "operationId": "pauseWebhookEndpoint",
        "summary": "pause webhook endpoint",
        "description": "CAS pause; an already-authorized in-flight request may finish. Delivery worker remains disabled.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookVersionInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "webhooks:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/events": {
      "get": {
        "operationId": "listEvents",
        "summary": "list events",
        "description": "Current Owner/Admin authority plus explicit events:read bearer scope. Only immutable typed versioned receipts; legacy rows excluded, external webhook delivery unconfigured.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "enum": [
                "contact.unsubscribed",
                "contact.topic_unsubscribed",
                "contacts.imported"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "events:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/events/{id}": {
      "get": {
        "operationId": "getEvent",
        "summary": "get event",
        "description": "Returns a verified immutable typed event; a receipt is not an external delivery acknowledgment.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "events:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/dispatch-controls": {
      "get": {
        "operationId": "getDispatchControls",
        "summary": "get dispatch controls",
        "description": "Current Owner/Admin session only. Missing policy fails closed; this does not activate sending.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DispatchControlsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/dispatch-controls/workspace": {
      "post": {
        "operationId": "setWorkspaceDispatchPolicy",
        "summary": "set workspace dispatch policy",
        "description": "Current Owner/Admin session, exact workspace policy version. Replays acknowledge the original command and return current controls. Global/provider changes are operator-only and unavailable here.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DispatchPolicyInput"
              },
              "example": {
                "expected_version": 0,
                "paused": true,
                "reason": "incident"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DispatchControlsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "pause"
      }
    },
    "/v1/health": {
      "get": {
        "operationId": "health",
        "summary": "health",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/workspaces": {
      "get": {
        "operationId": "listWorkspaces",
        "summary": "list workspaces",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      },
      "post": {
        "operationId": "createWorkspace",
        "summary": "create workspace",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceInput"
              },
              "example": {
                "name": "Example workspace"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/session": {
      "delete": {
        "operationId": "signOutLocalSession",
        "summary": "sign out local session",
        "description": "Removes development cookie only. Production identity signout uses the configured identity provider.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/local-session": {
      "post": {
        "operationId": "localSession",
        "summary": "local session",
        "description": "Loopback development bootstrap only; disabled in production. Supply private secret through local UI. Not a production authentication mechanism.",
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocalSessionInput"
              },
              "example": {
                "secret": "example-only-never-a-real-secret"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/integrations": {
      "get": {
        "operationId": "listIntegrations",
        "summary": "list integrations",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "integrations:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/brands": {
      "get": {
        "operationId": "listBrands",
        "summary": "list brands",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "confirmBrand",
        "summary": "confirm brand",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Brand"
              },
              "example": {
                "name": "Example brand",
                "website": "https://example.com",
                "description": "Example description",
                "voice": "Clear",
                "accent": "#0B625D",
                "background": "#F7F6F2",
                "font_stack": "Arial, sans-serif",
                "address": "Example postal address",
                "forbidden_phrases": [],
                "approved_claims": [],
                "provenance": []
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails": {
      "get": {
        "operationId": "listEmails",
        "summary": "list emails",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "createEmail",
        "summary": "create email",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailInput"
              },
              "example": {
                "title": "Example draft"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 13697024,
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/contacts": {
      "get": {
        "operationId": "listContacts",
        "summary": "list contacts",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/campaigns": {
      "get": {
        "operationId": "listCampaigns",
        "summary": "list campaigns",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "createCampaign",
        "summary": "create campaign",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignInput"
              },
              "example": {
                "name": "Example campaign",
                "revision_id": "11111111-1111-4111-8111-111111111111"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/segments": {
      "get": {
        "operationId": "listSegments",
        "summary": "list segments",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegmentsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "createSegment",
        "summary": "create segment",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentInput"
              },
              "example": {
                "name": "Named contacts",
                "rule": {
                  "kind": "attribute",
                  "field": "first_name",
                  "op": "exists"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/api-keys": {
      "get": {
        "operationId": "listApiKeys",
        "summary": "list api keys",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeysPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      },
      "post": {
        "operationId": "createApiKey",
        "summary": "create api key",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyInput"
              },
              "example": {
                "name": "Example reader",
                "scopes": [
                  "emails:read"
                ],
                "expires_in_days": 90
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/audit": {
      "get": {
        "operationId": "listAudit",
        "summary": "list audit",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/email-revisions": {
      "get": {
        "operationId": "listRevisions",
        "summary": "list revisions",
        "description": "Without view, legacy listing and response remain unchanged. With view, only email_id, view, query, limit and after are accepted, once each; created date filters refuse. History cursors bind actor/workspace/email/filters and observed names/revisions;409 HISTORY_CHANGED asks for a refresh while preserved checkpoint IDs remain usable.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "email_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "recent",
                "all",
                "named"
              ]
            },
            "description": "Explicit History mode requires email_id; recent is the latest50 stored checkpoints by revision number, all preserves older access, named filters current nonblank names. No physical deletion or automatic-save history is implied."
          },
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "Explicit History mode only: trimmed literal substring over name or subject. Keep unchanged across pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevisionListingResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/brand-sources": {
      "get": {
        "operationId": "listBrandSources",
        "summary": "list brand sources",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "brand_kit_version_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandSourcesPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "addBrandSource",
        "summary": "add brand source",
        "description": "Manually approved UTF8 text up to64KiB; source rights/no-private-data assertion required. Exact confirmed brand version; no URL fetch or embedding provider.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandSourceInput"
              },
              "example": {
                "brand_kit_version_id": "11111111-1111-4111-8111-111111111111",
                "title": "Owned product brief",
                "source_ref": "Approved document",
                "text": "Verified product facts",
                "acknowledge_rights_and_no_private_data": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandSourceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/brand-sources/{id}": {
      "get": {
        "operationId": "getBrandSource",
        "summary": "get brand source",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandSourceDetailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/brand-sources/{id}/remove": {
      "post": {
        "operationId": "removeBrandSource",
        "summary": "remove brand source",
        "description": "Monotonic tombstone excludes new retrieval; historical metadata remains. Does not certify privacy erasure.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandSourceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/brands/{id}/memory-preview": {
      "post": {
        "operationId": "previewBrandMemory",
        "summary": "preview brand memory",
        "description": "Read-only current selected-version lexical context; no provider/model request.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemoryPreviewInput"
              },
              "example": {
                "query": "cotton product facts"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandMemoryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/brands/current": {
      "get": {
        "operationId": "getCurrentBrand",
        "summary": "get current brand",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrentBrandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/brands/from-url": {
      "post": {
        "operationId": "extractBrand",
        "summary": "extract brand",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UrlInput"
              },
              "example": {
                "url": "https://example.com"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "brands:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/templates": {
      "get": {
        "operationId": "listEmailTemplates",
        "summary": "list email templates",
        "description": "Metadata pins an immutable workspace revision and exact hash. Templates preserve their original brand/source; reuse creates a separate draft under current authority and asset checks. No AI, send or production acceptance is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "archived"
              ],
              "default": "active"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplatesPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "saveEmailTemplate",
        "summary": "save email template",
        "description": "Metadata pins an immutable workspace revision and exact hash. Templates preserve their original brand/source; reuse creates a separate draft under current authority and asset checks. No AI, send or production acceptance is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveEmailTemplateInput"
              },
              "example": {
                "name": "Example template",
                "source_revision_id": "11111111-1111-4111-8111-111111111111",
                "expected_artifact_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/templates/{id}": {
      "get": {
        "operationId": "getEmailTemplate",
        "summary": "get email template",
        "description": "Metadata pins an immutable workspace revision and exact hash. Templates preserve their original brand/source; reuse creates a separate draft under current authority and asset checks. No AI, send or production acceptance is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/templates/{id}/archive": {
      "post": {
        "operationId": "archiveEmailTemplate",
        "summary": "archive email template",
        "description": "Version CAS archives active templates and blocks new reuse while preserving revision and child history. Metadata pins an immutable workspace revision and exact hash. Templates preserve their original brand/source; reuse creates a separate draft under current authority and asset checks. No AI, send or production acceptance is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveEmailTemplateInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/templates/{id}/remix": {
      "post": {
        "operationId": "remixEmailTemplate",
        "summary": "remix email template",
        "description": "Version/hash CAS and same-key original-child recovery. Metadata pins an immutable workspace revision and exact hash. Templates preserve their original brand/source; reuse creates a separate draft under current authority and asset checks. No AI, send or production acceptance is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemixEmailTemplateInput"
              },
              "example": {
                "title": "New independent draft",
                "expected_version": 1,
                "expected_artifact_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DerivationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}": {
      "get": {
        "operationId": "getEmail",
        "summary": "get email",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/emails/generate": {
      "post": {
        "operationId": "generateEmail",
        "summary": "generate email",
        "description": "Fresh drafts retain historical defaults. Explicit revise_blocks requests bind selected scalar copy to the acknowledged saved email version and full-spec hash. The server stores the complete source before queuing. Original-key replay recovers that operation after later edits; new stale requests return412. Unsupported scope or over-budget context returns422 before usage reservation. Proposals never automatically edit the source.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateInput"
              },
              "example": {
                "prompt": "Write an email with approved facts",
                "brand_kit_version_id": "11111111-1111-4111-8111-111111111111",
                "locale": "en-US",
                "mode": "single"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/conversion-proposal": {
      "post": {
        "operationId": "prepareEmailConversion",
        "summary": "prepare email conversion",
        "description": "Read-only proposal pinned to the current raw source/version; explicit unsupported cases stay raw, safe complex fragments remain opaque. No Monaco/VML/universal/client-fidelity claim.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionProposalInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversionProposalResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/convert-to-blocks": {
      "post": {
        "operationId": "acceptEmailConversion",
        "summary": "accept email conversion",
        "description": "Explicit layout-change acknowledgment and exact source/proposal hashes. Current authority after receipt/resource waits; atomic original raw checkpoint and new structured head. Historical exact receipts never replace current detail; recover the same body/key and original If-Match.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConversionAcceptInput"
              },
              "example": {
                "expected_version": 1,
                "source_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                "proposal_hash": "1111111111111111111111111111111111111111111111111111111111111111",
                "acknowledge_layout_change": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversionAcceptResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/locale-source": {
      "get": {
        "operationId": "compareLocaleSource",
        "summary": "compare locale source",
        "description": "Read-only same-workspace original frozen source/current parent/saved locale-child comparison. Returns exact inert specs and versions; does not translate, checkpoint, review, approve or mutate source lineage.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocaleSourceComparisonResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/emails/{id}/locale-reviews": {
      "get": {
        "operationId": "listLocaleReviews",
        "summary": "list locale reviews",
        "description": "Manual content-review history and saved locale/source context. Applicability compares the frozen target version and observed source version with current drafts; never implies translation or sending approval.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocaleReviewHistoryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      },
      "post": {
        "operationId": "recordLocaleReview",
        "summary": "record locale review",
        "description": "Owner/Admin/Editor manual review of an existing checkpoint matching the acknowledged saved locale version. Pins original source revision and observed current parent version; stale context refuses. Replay the exact input/key/If-Match for historical acknowledgment. Does not mutate either draft, source lineage or send approval.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocaleReviewInput"
              },
              "example": {
                "revision_id": "11111111-1111-4111-8111-111111111111",
                "source_revision_id": "11111111-1111-4111-8111-111111111111",
                "expected_source_doc_version": 1,
                "outcome": "content_reviewed",
                "note": "Manually checked the local wording; sending is not approved."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocaleReviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/revision-comparisons": {
      "get": {
        "operationId": "compareEmailRevisions",
        "summary": "compare email revisions",
        "description": "Compare two immutable checkpoints belonging to the selected email. Current Owner/Admin/Editor/Viewer read permission; same checkpoint allowed. Strict three single-value query parameters; foreign/missing checkpoints refuse. No draft/audit/history writes or live/AI/render approval.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "email_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevisionComparisonResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/emails/{id}/named-checkpoints": {
      "post": {
        "operationId": "createNamedCheckpoint",
        "summary": "create named checkpoint",
        "description": "Atomically freezes the acknowledged draft and names that immutable checkpoint. Replay the original body/key/If-Match for its historical metadata receipt, even after later typing or renaming. Does not delete revisions, alter source, approve sending or promise lifetime retention.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NamedCheckpointInput"
              },
              "example": {
                "name": "Launch checkpoint"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NamedCheckpointResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/email-revisions/{id}/name": {
      "patch": {
        "operationId": "updateCheckpointName",
        "summary": "update checkpoint name",
        "description": "Independent name-version CAS; null clears the name. Unchanged name is a no-op; replay returns the original receipt.409 CHECKPOINT_NAME_CHANGED requires reconciliation, not an automatic retry. Immutable revision and editable draft are unchanged.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckpointNameInput"
              },
              "example": {
                "name": "Reviewed copy",
                "expected_name_version": 0
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckpointNameResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/derivatives": {
      "get": {
        "operationId": "listEmailDerivatives",
        "summary": "list email derivatives",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DerivativesPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/email-revisions/{id}/remix": {
      "post": {
        "operationId": "remixRevision",
        "summary": "remix revision",
        "description": "Copies a frozen source into a separately versioned same-workspace remix with immutable source provenance. Source remains intact.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemixInput"
              },
              "example": {
                "title": "Remixed example"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DerivationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/email-revisions/{id}/localize": {
      "post": {
        "operationId": "createLocaleDraft",
        "summary": "create locale draft",
        "description": "Creates a separately versioned manual locale draft linked to the frozen source. Source text is retained, not translated or reviewed; no AI/provider/send success is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocaleDraftInput"
              },
              "example": {
                "title": "Arabic draft example",
                "locale": "ar-SA"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DerivationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/source-import": {
      "post": {
        "operationId": "importEmailSource",
        "summary": "import email source",
        "description": "Preserve exact inert UTF-8 source and checkpoint the previous head atomically. Explicit original key and If-Match bind recovery; SDK never generates a command key or retries this operation automatically. Source fidelity and safe projection are separate.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Exact inert UTF-8 source, at most2097152 actual bytes. Preserve BOM, mixed line endings and Unicode without normalization. Empty source is valid. Reject malformed UTF-8, NUL, lone UTF-16 surrogates and Content-Encoding. This does not authorize rendering or distribution.",
          "content": {
            "text/plain": {
              "schema": {
                "type": "string",
                "maxLength": 2097152,
                "x-max-utf8-bytes": 2097152
              },
              "example": "﻿<!-- authored source -->\r\n<p>Example</p>\r"
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedEmailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 2097152,
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/source-fork": {
      "post": {
        "operationId": "forkEmailSource",
        "summary": "fork email source",
        "description": "Fork the acknowledged structured artifact to raw source on the server, matching expected_artifact_hash and original If-Match. Never accepts browser preview bytes as canonical source. Explicit same-key recovery; no automatic SDK retry.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceForkInput"
              },
              "example": {
                "expected_artifact_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedEmailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 13697024,
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/draft": {
      "patch": {
        "operationId": "saveDraft",
        "summary": "save draft",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftInput"
              },
              "example": {
                "spec": {
                  "schema_version": "1.0",
                  "editing_mode": "structured",
                  "locale": "en-US",
                  "direction": "ltr",
                  "subject": "",
                  "preheader": "",
                  "brand_kit_version_id": "11111111-1111-4111-8111-111111111111",
                  "theme": {
                    "content_width_px": 600,
                    "background": "#F7F6F2",
                    "accent": "#0B625D",
                    "font_stack": "Arial, sans-serif"
                  },
                  "sections": [
                    {
                      "id": "hero",
                      "type": "hero",
                      "heading": "Your next story starts here",
                      "text": "Add the offer, details and approved facts your readers need."
                    },
                    {
                      "id": "body",
                      "type": "text",
                      "text": "Write something worth opening."
                    },
                    {
                      "id": "cta",
                      "type": "button",
                      "label": "Explore",
                      "href": "https://example.com"
                    },
                    {
                      "id": "footer",
                      "type": "legal_footer",
                      "identity": "Example brand",
                      "address": "",
                      "unsubscribe_slot": true
                    }
                  ],
                  "tracking": {
                    "utm_source": "newsletter",
                    "utm_medium": "email",
                    "utm_campaign": "early-access"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedEmailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 13697024,
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/revisions": {
      "post": {
        "operationId": "checkpointEmail",
        "summary": "checkpoint email",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevisionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/restore": {
      "post": {
        "operationId": "restoreEmail",
        "summary": "restore email",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreInput"
              },
              "example": {
                "revision_id": "11111111-1111-4111-8111-111111111111"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/preview": {
      "post": {
        "operationId": "previewEmail",
        "summary": "preview email",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewInput"
              },
              "example": {
                "spec": {
                  "schema_version": "1.0",
                  "editing_mode": "structured",
                  "locale": "en-US",
                  "direction": "ltr",
                  "subject": "",
                  "preheader": "",
                  "brand_kit_version_id": "11111111-1111-4111-8111-111111111111",
                  "theme": {
                    "content_width_px": 600,
                    "background": "#F7F6F2",
                    "accent": "#0B625D",
                    "font_stack": "Arial, sans-serif"
                  },
                  "sections": [
                    {
                      "id": "hero",
                      "type": "hero",
                      "heading": "Your next story starts here",
                      "text": "Add the offer, details and approved facts your readers need."
                    },
                    {
                      "id": "body",
                      "type": "text",
                      "text": "Write something worth opening."
                    },
                    {
                      "id": "cta",
                      "type": "button",
                      "label": "Explore",
                      "href": "https://example.com"
                    },
                    {
                      "id": "footer",
                      "type": "legal_footer",
                      "identity": "Example brand",
                      "address": "",
                      "unsubscribe_slot": true
                    }
                  ],
                  "tracking": {
                    "utm_source": "newsletter",
                    "utm_medium": "email",
                    "utm_campaign": "early-access"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 13697024,
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/emails/{id}/import-html": {
      "post": {
        "operationId": "importHtml",
        "summary": "import html",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\"draft-[1-9][0-9]*\"$"
            },
            "description": "Acknowledged draft version; stale412, absent428."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HtmlInput"
              },
              "example": {
                "html": "<p>Example</p>"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedEmailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 13697024,
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/email-revisions/{id}/download": {
      "get": {
        "operationId": "downloadRevision",
        "summary": "download revision",
        "description": "Frozen output bytes. format=source returns exact authored UTF-8 as an inert text/plain attachment with nosniff, no-store, source hash and storage profile; it is not a delivery artifact. Other formats retain projection, media and release checks.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "html",
                "txt",
                "png",
                "pdf",
                "zip",
                "source"
              ],
              "default": "html"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Frozen bytes; browser image/PDF simulations, not real-client evidence.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Artifact-Hash": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Source-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "description": "Present for format=source; exact frozen UTF-8 source hash."
              },
              "X-Source-Profile": {
                "schema": {
                  "$ref": "#/components/schemas/SourceProfile"
                },
                "description": "Present for format=source; historical storage profile."
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "format=source uses attachment; filename=\"email-vN.source.html.txt\"."
              },
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:export"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/email-revisions/{id}/destination-review": {
      "get": {
        "operationId": "reviewDestinationRevision",
        "summary": "review destination revision",
        "description": "Current edit/export authority required. Locally compiled immutable Klaviyo, Mailchimp Classic, Omnisend HTML-import or Brevo marketing-draft preparation, explicit false remote availability and unchanged original source; not real-client or native destination evidence. Raw/custom/personalization/private assets refuse unsupported mapping.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "klaviyo",
                "mailchimp",
                "omnisend",
                "brevo"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DestinationReviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:export"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/email-revisions/{id}/destination-artifact": {
      "get": {
        "operationId": "downloadDestinationRevision",
        "summary": "download destination revision",
        "description": "Locally prepared frozen selected-destination attachment; no remote effect. Source/destination/content SHA256 headers bind the reviewed version. HTML or plaintext only; unsupported destination mapping fails closed.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "klaviyo",
                "mailchimp",
                "omnisend",
                "brevo"
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "html",
                "txt"
              ],
              "default": "html"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Locally prepared frozen Klaviyo, Mailchimp Classic, Omnisend HTML-import or Brevo marketing-draft HTML (format=html) or plaintext (format=txt), encoded as UTF-8 attachment bytes. Integrity receipts bind the source, destination mapping and exact downloaded content. Remote export remains disabled.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Artifact-Hash": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "description": "Destination artifact hash bound to source, mapping, API revision and both prepared formats."
              },
              "X-Source-Artifact-Hash": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "description": "Exact frozen source artifact hash reviewed before download."
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "description": "SHA256 of the exact UTF-8 bytes for the selected format."
              },
              "X-Destination-Mapping": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "klaviyo-html-1",
                    "mailchimp-classic-html-1",
                    "omnisend-html-import-1",
                    "brevo-campaign-html-1"
                  ]
                }
              },
              "X-Remote-Export-Enabled": {
                "schema": {
                  "type": "string",
                  "const": "false"
                },
                "description": "Local preparation only; no provider export is enabled."
              },
              "Content-Type": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "text/html; charset=utf-8",
                    "text/plain; charset=utf-8"
                  ]
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "attachment; filename=\"{destination}-prepared-{revision_id}.{format}\""
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "Content-Security-Policy": {
                "schema": {
                  "type": "string",
                  "const": "sandbox; default-src 'none'"
                }
              },
              "X-Mailcraft-Notice": {
                "schema": {
                  "type": "string"
                },
                "description": "Local preparation notice; remote export, live destination and real-client conformance remain unverified."
              }
            },
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:export"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/email-revisions/{id}/destination-push": {
      "post": {
        "operationId": "pushDestinationRevision",
        "summary": "push destination revision",
        "description": "Current edit/export authority required. Creates one template (Klaviyo, Mailchimp, Omnisend, HubSpot coded email template) or one Brevo draft campaign in the caller's own ESP account with a credential supplied for this request only. Nothing is sent to recipients. A durable submission marker is recorded before the single create request; the create is never retried. An earlier push of the same revision/destination with an unknown outcome returns409 EXPORT_PREVIOUS_OUTCOME_UNKNOWN unless acknowledge_possible_duplicate is true. Provider outcomes return200 with state created, created_unverified, rejected or outcome_unknown. Body limit 16384 bytes.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Required strict JSON object with application/json and optional UTF-8 charset only, no Content-Encoding. At most16384 actual bytes; declared byte length must be safe/nonnegative and exact. Fatal UTF-8 validation,30-second deadline and cancellation. Settings stay in the body. Server footer Unicode/delimiter/composed-address refinements remain authoritative.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DestinationPushInput"
              },
              "example": {
                "destination": "klaviyo",
                "credential": "pk_example_never_a_real_key",
                "name": "Spring launch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DestinationPushResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-scopes": [
          "emails:export"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/shopify-products": {
      "post": {
        "operationId": "listShopifyProducts",
        "summary": "list shopify products",
        "description": "Current edit authority required. Reads one page of a Shopify store's public storefront catalogue (/meta.json, then /products.json) for filling product cards; no Shopify credential is used and nothing is stored. Only stores whose currency is INR are accepted. Public-network SSRF guards apply to every hop. Refusals: 422 SHOPIFY_STORE_URL_INVALID, SHOPIFY_STORE_NOT_FOUND, SHOPIFY_CURRENCY_UNSUPPORTED, SHOPIFY_PRODUCTS_UNAVAILABLE or UNSAFE_URL; 503 SHOPIFY_STORE_UNREACHABLE. Body limit 4096 bytes.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShopifyProductsInput"
              },
              "example": {
                "store_url": "yourbrand.myshopify.com",
                "page": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShopifyProductsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/email-revisions/{id}/hubspot-review": {
      "post": {
        "operationId": "reviewHubSpotRevision",
        "summary": "review hub spot revision",
        "description": "Current edit/export authority and actor fence required. Locally declared seven-field settings compared with the exact frozen footer; settings stay in the required strict JSON body, never query parameters. Review contains hashes and fixed false readiness flags only. Account settings, entitlement, native/client conformance and remote export remain unverified. No provider call, durable export or idempotent receipt.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Required strict JSON object with application/json and optional UTF-8 charset only, no Content-Encoding. At most16384 actual bytes; declared byte length must be safe/nonnegative and exact. Fatal UTF-8 validation,30-second deadline and cancellation. Settings stay in the body. Server footer Unicode/delimiter/composed-address refinements remain authoritative.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubSpotReviewInput"
              },
              "example": {
                "settings": {
                  "company_name": "Example Company",
                  "company_street_address_1": "10 Example Road",
                  "company_street_address_2": "",
                  "company_city": "Example City",
                  "company_state": "Example State",
                  "company_zip": "12345",
                  "company_country": "Example Country"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubSpotReviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-scopes": [
          "emails:export"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/email-revisions/{id}/hubspot-artifact": {
      "post": {
        "operationId": "downloadHubSpotRevision",
        "summary": "download hub spot revision",
        "description": "Current edit/export authority and actor fence required. Locally declared seven-field settings compared with the exact frozen footer; settings stay in the required strict JSON body, never query parameters. Review contains hashes and fixed false readiness flags only. Account settings, entitlement, native/client conformance and remote export remain unverified. No provider call, durable export or idempotent receipt. Recompile with the same declared settings and require expected_destination_hash; changed review409 HUBSPOT_REVIEW_CHANGED before any download audit. Explicit HTML or plaintext format only.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Required strict JSON object with application/json and optional UTF-8 charset only, no Content-Encoding. At most16384 actual bytes; declared byte length must be safe/nonnegative and exact. Fatal UTF-8 validation,30-second deadline and cancellation. Settings stay in the body. Server footer Unicode/delimiter/composed-address refinements remain authoritative.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HubSpotArtifactInput"
              },
              "example": {
                "settings": {
                  "company_name": "Example Company",
                  "company_street_address_1": "10 Example Road",
                  "company_street_address_2": "",
                  "company_city": "Example City",
                  "company_state": "Example State",
                  "company_zip": "12345",
                  "company_country": "Example Country"
                },
                "format": "html",
                "expected_destination_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Locally prepared HubSpot coded-footer HTML or plaintext UTF-8 attachment. Declared settings are compared locally; account settings, native conformance and client fidelity remain unverified. No remote export.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Artifact-Hash": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "description": "Destination artifact hash bound to source, mapping/comparison versions, declared settings digest and both prepared formats."
              },
              "X-Source-Artifact-Hash": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "description": "Exact frozen source artifact hash reviewed before download."
              },
              "X-Content-SHA256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "description": "SHA256 of the exact UTF-8 bytes for the selected format."
              },
              "X-Destination-Mapping": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "hubspot-coded-footer-1"
                  ]
                }
              },
              "X-Remote-Export-Enabled": {
                "schema": {
                  "type": "string",
                  "const": "false"
                },
                "description": "Local preparation only; no provider export is enabled."
              },
              "Content-Type": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "text/html; charset=utf-8",
                    "text/plain; charset=utf-8"
                  ]
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "attachment; filename=\"hubspot-prepared-{revision_id}.{format}\""
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "Content-Security-Policy": {
                "schema": {
                  "type": "string",
                  "const": "sandbox; default-src 'none'"
                }
              },
              "X-Mailcraft-Notice": {
                "schema": {
                  "type": "string"
                },
                "description": "Local preparation notice; remote export, live destination and real-client conformance remain unverified."
              }
            },
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-scopes": [
          "emails:export"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/email-revisions/{id}/preflight": {
      "post": {
        "operationId": "preflightRevision",
        "summary": "preflight revision",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/email-revisions/{id}/export": {
      "post": {
        "operationId": "exportRevision",
        "summary": "export revision",
        "description": "Provider or release gates are unconfigured. No remote success, approval or sending is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reserved shape; the current development command always returns a documented provider/release error.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "emails:export"
        ],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/operations/report": {
      "get": {
        "operationId": "getCreationActivityReport",
        "summary": "get creation activity report",
        "description": "Bounded creation activity snapshot, at most 31 UTC days within years 2000–2100; start inclusive and end exclusive. Existing operation type determines brands:read or emails:read scope. Current outcomes of operations created in the cohort, daily creation buckets in selected supported IANA timezone (at most 33 dates), completion time from created_at to completed_at for measurable successes only, including queue time. Zero samples have null percentiles; missing/invalid timestamps are counted. No private input/result, recipient identifiers, provider delivery, engagement, revenue or human journey inference. This small aggregate snapshot is not the pending asynchronous bulk/live analytics export.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "enum": [
                "brand.extract",
                "email.generate"
              ]
            }
          },
          {
            "name": "created_after",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            }
          },
          {
            "name": "created_before",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            }
          },
          {
            "name": "time_zone",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreationActivityReportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/operations": {
      "get": {
        "operationId": "listCreationOperations",
        "summary": "list creation operations",
        "description": "Signed bounded creation history; scope follows required type. No private input or lease token.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "enum": [
                "brand.extract",
                "email.generate"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreationOperationsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/operations/{id}/attempts": {
      "get": {
        "operationId": "listCreationAttempts",
        "summary": "list creation attempts",
        "description": "Immutable redacted creation attempts; scope follows the selected operation.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreationAttemptsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/operations/{id}": {
      "get": {
        "operationId": "getOperation",
        "summary": "get operation",
        "description": "Scope is determined by operation type (brands, emails or audience); no generic recipient-data access.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/operations/{id}/cancel": {
      "post": {
        "operationId": "cancelOperation",
        "summary": "cancel operation",
        "description": "Durable cancellation; running external reservations remain held until definitive resolution. Not a keyed replay contract.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/audience-schema": {
      "get": {
        "operationId": "getAudienceSchema",
        "summary": "get audience schema",
        "description": "Bounded development catalog:200lists/tags and100segments. Dedicated full-GA catalog controls remain required.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/audience-schema/exports": {
      "post": {
        "operationId": "createEngagementExport",
        "summary": "create engagement export",
        "description": "Durable actor/workspace-scoped observed engagement export. Existing audience Owner/Admin action applies. POST requires both audience:write and audience:read. Explicit authenticated process captures once in a locked transaction and stores immutable CSV bytes; no daemon, provider call, delivery acceptance or campaign attribution. Development bounds366days,2MiB CSV/capture,5queued per actor/20per workspace; no pricing or maximal capacity claim. Permanent create-key/window digest survives ordinary receipt expiry. Current authority is reread before receipts and after blocking locks. Foreign actor/workspace404. Historical create acknowledgments require current job refresh. Original installation requires separately approved new042 migration. Full bulk/retention/live ingestion remains unqualified.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Strict UTF-8 application/json object, no Content-Encoding, at most16384 actual bytes. Process/cancel require exactly an empty object. Preserve the original command key/body during uncertainty.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EngagementExportWindow"
              },
              "example": {
                "occurred_after": "2026-01-01T00:00:00.000Z",
                "occurred_before": "2027-01-01T00:00:00.000Z",
                "time_zone": "UTC"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngagementExportJobResponse"
                },
                "example": {
                  "request_id": "11111111-1111-4111-8111-111111111111",
                  "job": {
                    "id": "11111111-1111-4111-8111-111111111111",
                    "workspace_id": "11111111-1111-4111-8111-111111111111",
                    "actor_id": "example-actor",
                    "state": "queued",
                    "input": {
                      "occurred_after": "2026-01-01T00:00:00.000Z",
                      "occurred_before": "2027-01-01T00:00:00.000Z",
                      "time_zone": "UTC"
                    },
                    "created_at": "2026-10-04T00:00:00.000Z",
                    "completed_at": null,
                    "capture": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-scopes": [
          "audience:write",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "read_export"
      },
      "get": {
        "operationId": "listEngagementExports",
        "summary": "list engagement exports",
        "description": "Durable actor/workspace-scoped observed engagement export. Existing audience Owner/Admin action applies. POST requires both audience:write and audience:read. Explicit authenticated process captures once in a locked transaction and stores immutable CSV bytes; no daemon, provider call, delivery acceptance or campaign attribution. Development bounds366days,2MiB CSV/capture,5queued per actor/20per workspace; no pricing or maximal capacity claim. Permanent create-key/window digest survives ordinary receipt expiry. Current authority is reread before receipts and after blocking locks. Foreign actor/workspace404. Historical create acknowledgments require current job refresh. Original installation requires separately approved new042 migration. Full bulk/retention/live ingestion remains unqualified.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngagementExportJobsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/audience-schema/exports/{id}": {
      "get": {
        "operationId": "getEngagementExport",
        "summary": "get engagement export",
        "description": "Durable actor/workspace-scoped observed engagement export. Existing audience Owner/Admin action applies. POST requires both audience:write and audience:read. Explicit authenticated process captures once in a locked transaction and stores immutable CSV bytes; no daemon, provider call, delivery acceptance or campaign attribution. Development bounds366days,2MiB CSV/capture,5queued per actor/20per workspace; no pricing or maximal capacity claim. Permanent create-key/window digest survives ordinary receipt expiry. Current authority is reread before receipts and after blocking locks. Foreign actor/workspace404. Historical create acknowledgments require current job refresh. Original installation requires separately approved new042 migration. Full bulk/retention/live ingestion remains unqualified.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngagementExportJobResponse"
                },
                "example": {
                  "request_id": "11111111-1111-4111-8111-111111111111",
                  "job": {
                    "id": "11111111-1111-4111-8111-111111111111",
                    "workspace_id": "11111111-1111-4111-8111-111111111111",
                    "actor_id": "example-actor",
                    "state": "queued",
                    "input": {
                      "occurred_after": "2026-01-01T00:00:00.000Z",
                      "occurred_before": "2027-01-01T00:00:00.000Z",
                      "time_zone": "UTC"
                    },
                    "created_at": "2026-10-04T00:00:00.000Z",
                    "completed_at": null,
                    "capture": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/audience-schema/exports/{id}/process": {
      "post": {
        "operationId": "processEngagementExport",
        "summary": "process engagement export",
        "description": "Durable actor/workspace-scoped observed engagement export. Existing audience Owner/Admin action applies. POST requires both audience:write and audience:read. Explicit authenticated process captures once in a locked transaction and stores immutable CSV bytes; no daemon, provider call, delivery acceptance or campaign attribution. Development bounds366days,2MiB CSV/capture,5queued per actor/20per workspace; no pricing or maximal capacity claim. Permanent create-key/window digest survives ordinary receipt expiry. Current authority is reread before receipts and after blocking locks. Foreign actor/workspace404. Historical create acknowledgments require current job refresh. Original installation requires separately approved new042 migration. Full bulk/retention/live ingestion remains unqualified. Cancelled409 EXPORT_CANCELLED; already succeeded returns stored metadata without reprocessing.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Strict UTF-8 application/json object, no Content-Encoding, at most16384 actual bytes. Process/cancel require exactly an empty object. Preserve the original command key/body during uncertainty.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngagementExportJobResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-scopes": [
          "audience:write",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/audience-schema/exports/{id}/cancel": {
      "post": {
        "operationId": "cancelEngagementExport",
        "summary": "cancel engagement export",
        "description": "Durable actor/workspace-scoped observed engagement export. Existing audience Owner/Admin action applies. POST requires both audience:write and audience:read. Explicit authenticated process captures once in a locked transaction and stores immutable CSV bytes; no daemon, provider call, delivery acceptance or campaign attribution. Development bounds366days,2MiB CSV/capture,5queued per actor/20per workspace; no pricing or maximal capacity claim. Permanent create-key/window digest survives ordinary receipt expiry. Current authority is reread before receipts and after blocking locks. Foreign actor/workspace404. Historical create acknowledgments require current job refresh. Original installation requires separately approved new042 migration. Full bulk/retention/live ingestion remains unqualified. Succeeded409 EXPORT_ALREADY_SUCCEEDED; already cancelled returns existing metadata.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Strict UTF-8 application/json object, no Content-Encoding, at most16384 actual bytes. Process/cancel require exactly an empty object. Preserve the original command key/body during uncertainty.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngagementExportJobResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-scopes": [
          "audience:write",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/audience-schema/exports/{id}/download": {
      "get": {
        "operationId": "downloadEngagementExport",
        "summary": "download engagement export",
        "description": "Durable actor/workspace-scoped observed engagement export. Existing audience Owner/Admin action applies. POST requires both audience:write and audience:read. Explicit authenticated process captures once in a locked transaction and stores immutable CSV bytes; no daemon, provider call, delivery acceptance or campaign attribution. Development bounds366days,2MiB CSV/capture,5queued per actor/20per workspace; no pricing or maximal capacity claim. Permanent create-key/window digest survives ordinary receipt expiry. Current authority is reread before receipts and after blocking locks. Foreign actor/workspace404. Historical create acknowledgments require current job refresh. Original installation requires separately approved new042 migration. Full bulk/retention/live ingestion remains unqualified. Queued/cancelled409 EXPORT_NOT_READY; invalid stored digest/size/capture409 EXPORT_INTEGRITY_FAILED.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          }
        ],
        "responses": {
          "200": {
            "description": "Exact immutable captured UTF-8 CSV bytes; no source reread or reprocessing. Verify decoded response digest and byte count against current job metadata.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Type": {
                "schema": {
                  "const": "text/csv; charset=utf-8"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "attachment; filename=\"engagement-export-{id}.csv\""
              },
              "X-Export-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-Export-Content-Sha256": {
                "schema": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "Cache-Control": {
                "schema": {
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/audience-schema/report": {
      "get": {
        "operationId": "getObservedEngagementReport",
        "summary": "get observed engagement report",
        "description": "Bounded persisted-observation snapshot, at most31 UTC days within years2000–2100; occurrence start inclusive/end exclusive. Existing audience role/action and audience:read scope apply. Only occurred_at and recorded_at at/before captured generated_at are included. Total events count persisted workspace/provider/provider_event_id identities; unique contacts overlap kinds and local days and must not be summed. Complete zero-filled local-date labels (at most33) group the UTC cohort, so boundary dates can be partial local days. Recording delay is recorded_at minus occurred_at; negative clocks are counted/excluded from median/p95, >60s is strictly greater than60seconds, and recorded_after_window_count includes recorded_at at/after the exclusive occurrence-window end. This measures stored observations, never a provider ingestion or delivery SLO. Ingestion not connected, verification unqualified, campaign attribution/bot filtering/device/client/geo unavailable, opens unreliable; no human reading or delivery denominator/rates inferred. No recipient identifiers, provider IDs, verification JSON or personal properties. Browser CSV encodes the exact validated captured snapshot with UTF8/RFC4180 CRLF and formula neutralization, omits scope identifiers and does not silently refresh. Window, timezone and cross-field reconciliation refinements are server-authoritative beyond JSON Schema. Signed live ingestion, campaign counters, tracking and asynchronous bulk analytics remain required.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Optional account-change fence compared with the authenticated actor. It grants no delegation and never changes the actor-scoped receipt namespace; mismatch409 ACTOR_CHANGED."
          },
          {
            "name": "occurred_after",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "example": "2026-03-08T00:00:00.000Z"
          },
          {
            "name": "occurred_before",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            },
            "example": "2026-03-09T00:00:00.000Z"
          },
          {
            "name": "time_zone",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "example": "UTC"
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservedEngagementReportResponse"
                },
                "example": {
                  "request_id": "11111111-1111-4111-8111-111111111111",
                  "report": {
                    "schema_version": "engagement-observations-v1",
                    "workspace_id": "11111111-1111-4111-8111-111111111111",
                    "actor_id": "example-actor",
                    "occurred_after": "2026-03-08T00:00:00.000Z",
                    "occurred_before": "2026-03-09T00:00:00.000Z",
                    "time_zone": "UTC",
                    "generated_at": "2026-03-09T01:00:00.000Z",
                    "counts": {
                      "all": {
                        "total_events": 0,
                        "unique_contacts": 0
                      },
                      "delivered": {
                        "total_events": 0,
                        "unique_contacts": 0
                      },
                      "opened": {
                        "total_events": 0,
                        "unique_contacts": 0
                      },
                      "clicked": {
                        "total_events": 0,
                        "unique_contacts": 0
                      }
                    },
                    "daily": [
                      {
                        "date": "2026-03-08",
                        "counts": {
                          "all": {
                            "total_events": 0,
                            "unique_contacts": 0
                          },
                          "delivered": {
                            "total_events": 0,
                            "unique_contacts": 0
                          },
                          "opened": {
                            "total_events": 0,
                            "unique_contacts": 0
                          },
                          "clicked": {
                            "total_events": 0,
                            "unique_contacts": 0
                          }
                        }
                      }
                    ],
                    "recording_delay": {
                      "sample_count": 0,
                      "negative_delay_count": 0,
                      "over_60s_count": 0,
                      "recorded_after_window_count": 0,
                      "median_ms": null,
                      "p95_ms": null
                    },
                    "coverage": {
                      "source": "recorded_engagement_events",
                      "ingestion": "not_connected",
                      "verification": "unqualified",
                      "campaign_attribution": "unavailable",
                      "bot_filtering": "unavailable",
                      "device_client_geo": "unavailable",
                      "opens": "unreliable"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/lists": {
      "post": {
        "operationId": "createList",
        "summary": "create list",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NamedInput"
              },
              "example": {
                "name": "Example list"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/tags": {
      "post": {
        "operationId": "createTag",
        "summary": "create tag",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NamedInput"
              },
              "example": {
                "name": "Example list"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/contact-fields": {
      "post": {
        "operationId": "createContactField",
        "summary": "create contact field",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FieldInput"
              },
              "example": {
                "key": "score",
                "label": "Score",
                "type": "number"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/contacts/{id}/profile": {
      "patch": {
        "operationId": "updateContactProfile",
        "summary": "update contact profile",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileInput"
              },
              "example": {
                "expected_version": 1,
                "attrs": {
                  "first_name": "Example"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/contacts/{id}/suppress": {
      "post": {
        "operationId": "suppressContact",
        "summary": "suppress contact",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/segments/{id}": {
      "get": {
        "operationId": "getSegment",
        "summary": "get segment",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/segments/{id}/versions": {
      "post": {
        "operationId": "createSegmentVersion",
        "summary": "create segment version",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SegmentVersionInput"
              },
              "example": {
                "expected_version": 1,
                "rule": {
                  "kind": "attribute",
                  "field": "first_name",
                  "op": "exists"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/segments/{id}/preview": {
      "post": {
        "operationId": "previewSegment",
        "summary": "preview segment",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/segments/{id}/snapshots": {
      "post": {
        "operationId": "freezeAudience",
        "summary": "freeze audience",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionInput"
              },
              "example": {
                "expected_version": 1
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/audience-snapshots": {
      "get": {
        "operationId": "listAudienceSnapshots",
        "summary": "list audience snapshots",
        "description": "Current audience authority; strict metadata without recipient members or addresses. Signed cursors bind actor, workspace and segment/time filters. No duplicate/unknown/empty query parameters.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "segment_id",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AudienceSnapshotsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/audience-snapshots/{id}/metadata": {
      "get": {
        "operationId": "getAudienceSnapshotMetadata",
        "summary": "get audience snapshot metadata",
        "description": "Strict immutable selection metadata; recipient members remain restricted to the existing audience-authorized full snapshot detail.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AudienceSnapshotMetadataResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/audience-snapshots/{id}": {
      "get": {
        "operationId": "getAudienceSnapshot",
        "summary": "get audience snapshot",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/contact-imports/inspect": {
      "post": {
        "operationId": "inspectImport",
        "summary": "inspect import",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectInput"
              },
              "example": {
                "csv": "email\nfixture@example.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactImportInspectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/contact-imports": {
      "post": {
        "operationId": "dryRunImport",
        "summary": "dry run import",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportInput"
              },
              "example": {
                "csv": "email\nfixture@example.com",
                "mapping": {
                  "email": "email",
                  "attributes": {}
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/contact-imports/{id}/confirm": {
      "post": {
        "operationId": "confirmImport",
        "summary": "confirm import",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/contact-imports/{id}/errors": {
      "get": {
        "operationId": "importErrors",
        "summary": "import errors",
        "description": "Bounded error rows from one immutable import result; legacy integer cursor is not a resource-page cursor.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/speech-tokens": {
      "post": {
        "operationId": "mintSpeechToken",
        "summary": "mint speech token",
        "description": "Session only: bearer API keys are refused. Current edit authority required. Mints a short-lived Cartesia access token with only the speech-to-text grant so the browser can stream microphone audio directly to Cartesia for a spoken email brief. The Cartesia API key (CARTESIA_API_KEY) never leaves the server; no audio passes through Lettercape and nothing is stored. Up to 20 tokens per member per 10 minutes. Refusals: 422 VALIDATION_FAILED for a non-empty body; 429 SPEECH_RATE_LIMITED; 503 SPEECH_NOT_CONFIGURED without CARTESIA_API_KEY, or SPEECH_UNAVAILABLE when Cartesia does not answer.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpeechTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/ai-credentials": {
      "get": {
        "operationId": "getAiConnection",
        "summary": "get ai connection",
        "description": "Current content-role session. Session only: bearer API keys are refused. The workspace's own OpenRouter, OpenAI or Anthropic account pays for its AI usage; Lettercape never marks it up. Keys are sealed with AES-256-GCM (AI_CREDENTIAL_KEY) and never returned; responses show provider, model and last four characters only. Without AI_CREDENTIAL_KEY the deployment reports configured=false and refuses to store keys.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConnectionStateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      },
      "post": {
        "operationId": "connectAiCredential",
        "summary": "connect ai credential",
        "description": "Current Owner/Admin session and approved Origin. One bounded provider request (10s, 64KiB) confirms the key and model before anything is stored; the previous connection is disconnected in the same transaction. Session only: bearer API keys are refused. The workspace's own OpenRouter, OpenAI or Anthropic account pays for its AI usage; Lettercape never marks it up. Keys are sealed with AES-256-GCM (AI_CREDENTIAL_KEY) and never returned; responses show provider, model and last four characters only. Without AI_CREDENTIAL_KEY the deployment reports configured=false and refuses to store keys.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiCredentialInput"
              },
              "example": {
                "provider": "openai",
                "api_key": "sk-example-never-a-real-key-0000",
                "model": "gpt-6.1-sol"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiConnectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/ai-credentials/disconnect": {
      "post": {
        "operationId": "disconnectAiCredential",
        "summary": "disconnect ai credential",
        "description": "Current Owner/Admin session. Erases the sealed key; generation returns to the platform allowance. Queued generations bound to the connection fail with a fixed reconnect message. Session only: bearer API keys are refused. The workspace's own OpenRouter, OpenAI or Anthropic account pays for its AI usage; Lettercape never marks it up. Keys are sealed with AES-256-GCM (AI_CREDENTIAL_KEY) and never returned; responses show provider, model and last four characters only. Without AI_CREDENTIAL_KEY the deployment reports configured=false and refuses to store keys.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiDisconnectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/ai-credentials/openrouter": {
      "post": {
        "operationId": "startOpenRouterConnection",
        "summary": "start open router connection",
        "description": "Current Owner/Admin session. Starts OpenRouter OAuth PKCE (S256) with state. The verifier and state are kept only in a sealed httpOnly SameSite=Lax cookie for 10 minutes, never in a URL. Navigate the browser to authorize_url. Session only: bearer API keys are refused. The workspace's own OpenRouter, OpenAI or Anthropic account pays for its AI usage; Lettercape never marks it up. Keys are sealed with AES-256-GCM (AI_CREDENTIAL_KEY) and never returned; responses show provider, model and last four characters only. Without AI_CREDENTIAL_KEY the deployment reports configured=false and refuses to store keys.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenRouterStartInput"
              },
              "example": {
                "model": "anthropic/claude-sonnet-5.5"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenRouterStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/ai-credentials/openrouter/callback": {
      "get": {
        "operationId": "completeOpenRouterConnection",
        "summary": "complete open router connection",
        "description": "OpenRouter browser callback on the application origin. Refuses a missing, expired or mismatched state, or a different signed-in actor, before exchanging the code with its verifier. The exchanged key is validated, sealed and stored for the workspace that started the sign-in. Session only: bearer API keys are refused. The workspace's own OpenRouter, OpenAI or Anthropic account pays for its AI usage; Lettercape never marks it up. Keys are sealed with AES-256-GCM (AI_CREDENTIAL_KEY) and never returned; responses show provider, model and last four characters only. Without AI_CREDENTIAL_KEY the deployment reports configured=false and refuses to store keys.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "error",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "return",
            "in": "query",
            "schema": {
              "type": "string",
              "const": "1"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "Browser redirect to /app/settings with ?ai=connected, ?ai=cancelled or ?ai=<error_code>. The sealed sign-in cookie is cleared on every outcome. A cross-site arrival first receives a same-origin HTML hop.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections": {
      "get": {
        "operationId": "getEspConnections",
        "summary": "get esp connections",
        "description": "Current content-role session. Lists Klaviyo, Mailchimp and HubSpot with whether each is configured on this deployment and the workspace's live connection (account name, state, who connected it), plus whether the caller may connect or disconnect. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EspConnectionsStateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/klaviyo/start": {
      "post": {
        "operationId": "startKlaviyoConnection",
        "summary": "start klaviyo connection",
        "description": "Current Owner/Admin session. Starts Klaviyo OAuth with state and PKCE (S256). State and verifier are kept only in a sealed httpOnly SameSite=Lax cookie for 10 minutes, never in a URL. Open authorize_url in a popup or navigate to it. 503 ESP_CONNECTIONS_NOT_CONFIGURED when this provider's client credentials are not set. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EspStartInput"
              },
              "example": {
                "return_to": "/app",
                "mode": "popup"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EspStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/klaviyo/callback": {
      "get": {
        "operationId": "completeKlaviyoConnection",
        "summary": "complete klaviyo connection",
        "description": "Klaviyo browser callback on the application origin. Refuses a missing, expired or mismatched state, or a different signed-in actor, before exchanging the code. Reads the account identity, seals the tokens and replaces any previous Klaviyo connection (whose grant is then revoked at Klaviyo on a best-effort basis). Popup mode (the default) answers 200 with a small no-referrer HTML page that notifies the editor over a BroadcastChannel and closes itself; redirect mode answers 303 back to the app with ?esp=<outcome>. A provider ?error= counts as a cancel only with this sign-in's own state. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "error",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "return",
            "in": "query",
            "schema": {
              "type": "string",
              "const": "1"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "Browser redirect to /app/settings with ?ai=connected, ?ai=cancelled or ?ai=<error_code>. The sealed sign-in cookie is cleared on every outcome. A cross-site arrival first receives a same-origin HTML hop.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/klaviyo/disconnect": {
      "post": {
        "operationId": "disconnectKlaviyoConnection",
        "summary": "disconnect klaviyo connection",
        "description": "Current Owner/Admin session. Erases the sealed tokens for the workspace's Klaviyo connection, then revokes the grant at Klaviyo on a best-effort basis (provider_revoked true/false). Idempotent. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EspDisconnectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/mailchimp/start": {
      "post": {
        "operationId": "startMailchimpConnection",
        "summary": "start mailchimp connection",
        "description": "Current Owner/Admin session. Starts Mailchimp OAuth with state. State is kept only in a sealed httpOnly SameSite=Lax cookie for 10 minutes, never in a URL. Open authorize_url in a popup or navigate to it. 503 ESP_CONNECTIONS_NOT_CONFIGURED when this provider's client credentials are not set. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EspStartInput"
              },
              "example": {
                "return_to": "/app",
                "mode": "popup"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EspStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/mailchimp/callback": {
      "get": {
        "operationId": "completeMailchimpConnection",
        "summary": "complete mailchimp connection",
        "description": "Mailchimp browser callback on the application origin. Refuses a missing, expired or mismatched state, or a different signed-in actor, before exchanging the code. Reads the account identity, seals the tokens and replaces any previous Mailchimp connection (whose grant is then revoked at Mailchimp on a best-effort basis). Popup mode (the default) answers 200 with a small no-referrer HTML page that notifies the editor over a BroadcastChannel and closes itself; redirect mode answers 303 back to the app with ?esp=<outcome>. A provider ?error= counts as a cancel only with this sign-in's own state. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "error",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "return",
            "in": "query",
            "schema": {
              "type": "string",
              "const": "1"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "Browser redirect to /app/settings with ?ai=connected, ?ai=cancelled or ?ai=<error_code>. The sealed sign-in cookie is cleared on every outcome. A cross-site arrival first receives a same-origin HTML hop.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/mailchimp/disconnect": {
      "post": {
        "operationId": "disconnectMailchimpConnection",
        "summary": "disconnect mailchimp connection",
        "description": "Current Owner/Admin session. Erases the sealed tokens for the workspace's Mailchimp connection, then reports provider_revoked=null: Mailchimp has no revoke endpoint, so remove Lettercape from your Mailchimp account to revoke access there. Idempotent. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EspDisconnectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/hubspot/start": {
      "post": {
        "operationId": "startHubSpotConnection",
        "summary": "start hub spot connection",
        "description": "Current Owner/Admin session. Starts HubSpot OAuth with state. State is kept only in a sealed httpOnly SameSite=Lax cookie for 10 minutes, never in a URL. Open authorize_url in a popup or navigate to it. 503 ESP_CONNECTIONS_NOT_CONFIGURED when this provider's client credentials are not set. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EspStartInput"
              },
              "example": {
                "return_to": "/app",
                "mode": "popup"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EspStartResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/hubspot/callback": {
      "get": {
        "operationId": "completeHubSpotConnection",
        "summary": "complete hub spot connection",
        "description": "HubSpot browser callback on the application origin. Refuses a missing, expired or mismatched state, or a different signed-in actor, before exchanging the code. Reads the account identity, seals the tokens and replaces any previous HubSpot connection (whose grant is then revoked at HubSpot on a best-effort basis). Popup mode (the default) answers 200 with a small no-referrer HTML page that notifies the editor over a BroadcastChannel and closes itself; redirect mode answers 303 back to the app with ?esp=<outcome>. A provider ?error= counts as a cancel only with this sign-in's own state. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "error",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "return",
            "in": "query",
            "schema": {
              "type": "string",
              "const": "1"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "Browser redirect to /app/settings with ?ai=connected, ?ai=cancelled or ?ai=<error_code>. The sealed sign-in cookie is cleared on every outcome. A cross-site arrival first receives a same-origin HTML hop.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/esp-connections/hubspot/disconnect": {
      "post": {
        "operationId": "disconnectHubSpotConnection",
        "summary": "disconnect hub spot connection",
        "description": "Current Owner/Admin session. Erases the sealed tokens for the workspace's HubSpot connection, then revokes the grant at HubSpot on a best-effort basis (provider_revoked true/false). Idempotent. Behind ESP_OAUTH_ENABLED (off: status reports enabled=false and every other route is 404). Session only: bearer API keys and connector principals are refused. Access and refresh tokens are sealed with AES-256-GCM (ESP_CREDENTIAL_KEY), bound to the workspace, connection and provider, and are never returned, logged or audited. Pasted-key sends are unchanged.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EspDisconnectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Admin"
        ],
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/workspace-preferences": {
      "get": {
        "operationId": "getWorkspacePreferences",
        "summary": "get workspace preferences",
        "description": "Current content-role session; display preference only.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspacePreferencesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/workspace-preferences/timezone": {
      "post": {
        "operationId": "setWorkspaceTimezone",
        "summary": "set workspace timezone",
        "description": "Current Owner/Admin session and exact preference version. Replay acknowledges the original command and returns current preference. Campaign intent, hashes and approval remain intact; this does not schedule delivery.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkspaceTimezoneInput"
              },
              "example": {
                "expected_version": 1,
                "time_zone": "UTC"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceTimezoneResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/campaigns/calendar": {
      "get": {
        "operationId": "getCampaignCalendar",
        "summary": "get campaign calendar",
        "description": "Complete valid planned timing displayed in saved workspace timezone. Signed cursor binds actor, tenant, month and timezone version. Redacted metadata only; no accepted delivery schedule or audience-performance measurement.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "month",
            "in": "query",
            "required": true,
            "schema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "type": "string",
              "pattern": "^(?!0000)\\d{4}-(?:0[1-9]|1[0-2])$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignCalendarResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/campaigns/{id}/submission-ledgers": {
      "post": {
        "operationId": "stageSubmissionLedger",
        "summary": "stage submission ledger",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured. Exact version/digest CAS; different verified keys return the same configuration ledger. Original keyed response is historical; retrieve detail for current staging progress. Input16KiB/max10000 sorted captured members, max100 committed rows per worker transaction.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmissionLedgerInput"
              },
              "example": {
                "expected_version": 1,
                "expected_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionLedgerResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:write",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      },
      "get": {
        "operationId": "listSubmissionLedgers",
        "summary": "list submission ledgers",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionLedgersPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/submission-ledgers/{id}": {
      "get": {
        "operationId": "getSubmissionLedger",
        "summary": "get submission ledger",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionLedgerResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/submission-ledgers/{id}/cancel": {
      "post": {
        "operationId": "cancelSubmissionLedger",
        "summary": "cancel submission ledger",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured. Cancel unapproved staging and only pending deliveries; retain immutable identities and history. Completed materialization can be cancelled without allowing duplicate recreation.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmissionLedgerResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:write",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/submission-ledgers/{id}/recipients": {
      "get": {
        "operationId": "listStagedRecipients",
        "summary": "list staged recipients",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured. Contact IDs only; no addresses. Signed cursor binds parent ledger and optional state plus actor/tenant/date filters, default25/max100.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "skipped",
                "cancelled"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedRecipientsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/deliveries/{id}": {
      "get": {
        "operationId": "getStagedDelivery",
        "summary": "get staged delivery",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/deliveries/{id}/history": {
      "get": {
        "operationId": "listDeliveryHistory",
        "summary": "list delivery history",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured. Append-only captured staging/cancellation transitions; outcome remains independently unknown.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryHistoryPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/deliveries/{id}/attempts": {
      "get": {
        "operationId": "listDeliveryAttempts",
        "summary": "list delivery attempts",
        "description": "Durable staged recipients from one immutable campaign configuration and frozen audience. Pending means unapproved work; authorization_issued and dispatch_enabled remain false. Current Owner/Admin audience authority and campaign+audience API scopes required before every original receipt replay. No provider attempts, send quota/frequency reservation or campaign.sent event. Runtime cannot manufacture submission acceptance/outcomes; production authorizer/provider/service identity remain unconfigured. Actual attempt history is empty under current SQL admission. Read-only future shape does not imply provider acceptance. No create/update/transport route exists.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliveryAttemptsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/campaigns/{id}/recipient-assessments": {
      "post": {
        "operationId": "prepareRecipientAssessment",
        "summary": "prepare recipient assessment",
        "description": "Historical recipient observations from an exact immutable campaign configuration and verified frozen audience. Current Owner/Admin audience authority and additional audience:read API-key scope required on every request/replay. Selected topic is assessment context only. No approval, dispatch authorization, delivery attempt, provider call, frequency reservation or send quota. Production worker identity remains unqualified; local development worker only. Version and digest CAS; original keyed receipt is historical, retrieve detail for current progress. Maximum10,000 members; input16KiB.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecipientAssessmentInput"
              },
              "example": {
                "expected_version": 1,
                "expected_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                "topic_id": null
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientAssessmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:write",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      },
      "get": {
        "operationId": "listRecipientAssessments",
        "summary": "list recipient assessments",
        "description": "Historical recipient observations from an exact immutable campaign configuration and verified frozen audience. Current Owner/Admin audience authority and additional audience:read API-key scope required on every request/replay. Selected topic is assessment context only. No approval, dispatch authorization, delivery attempt, provider call, frequency reservation or send quota. Production worker identity remains unqualified; local development worker only.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientAssessmentsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/recipient-assessments/{id}": {
      "get": {
        "operationId": "getRecipientAssessment",
        "summary": "get recipient assessment",
        "description": "Historical recipient observations from an exact immutable campaign configuration and verified frozen audience. Current Owner/Admin audience authority and additional audience:read API-key scope required on every request/replay. Selected topic is assessment context only. No approval, dispatch authorization, delivery attempt, provider call, frequency reservation or send quota. Production worker identity remains unqualified; local development worker only.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientAssessmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/recipient-assessments/{id}/observations": {
      "get": {
        "operationId": "listRecipientObservations",
        "summary": "list recipient observations",
        "description": "Historical recipient observations from an exact immutable campaign configuration and verified frozen audience. Current Owner/Admin audience authority and additional audience:read API-key scope required on every request/replay. Selected topic is assessment context only. No approval, dispatch authorization, delivery attempt, provider call, frequency reservation or send quota. Production worker identity remains unqualified; local development worker only. Contact IDs only; no recipient addresses. Signed cursor binds actor/tenant/assessment and date filters, default25/max100.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientObservationsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/recipient-assessments/{id}/cancel": {
      "post": {
        "operationId": "cancelRecipientAssessment",
        "summary": "cancel recipient assessment",
        "description": "Historical recipient observations from an exact immutable campaign configuration and verified frozen audience. Current Owner/Admin audience authority and additional audience:read API-key scope required on every request/replay. Selected topic is assessment context only. No approval, dispatch authorization, delivery attempt, provider call, frequency reservation or send quota. Production worker identity remains unqualified; local development worker only. Retains manifest and committed observations. A completed run remains completed.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipientAssessmentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:write",
          "audience:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/campaigns/{id}": {
      "get": {
        "operationId": "getCampaign",
        "summary": "get campaign",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignDetailResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/campaigns/{id}/configurations": {
      "get": {
        "operationId": "listCampaignConfigurations",
        "summary": "list campaign configurations",
        "description": "Observed immutable configuration metadata only; current-only migration provenance does not invent earlier versions. No raw audience or provider secrets.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignConfigurationsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:read"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "read_export"
      }
    },
    "/v1/campaigns/{id}/configuration": {
      "post": {
        "operationId": "configureCampaign",
        "summary": "configure campaign",
        "description": "Current draft/review-pending version CAS, exact owned content and explicit planned timing. Optional audience_snapshot_id requires current Owner/Admin audience authority and additional audience:read on a key; omission preserves the existing selection. Exact frozen members/source digest are verified and bound without live re-evaluation. Material changes clear review/approval; no-op does not append history. Original receipts require current authority and do not imply current lifecycle state or accepted delivery.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignConfigurationInput"
              },
              "example": {
                "expected_version": 1,
                "name": "Example planned campaign",
                "revision_id": "11111111-1111-4111-8111-111111111111",
                "planned_timing": {
                  "local_time": "2026-11-01T01:30",
                  "time_zone": "America/New_York",
                  "utc_offset": "-04:00"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignConfigurationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/campaigns/{id}/submit-review": {
      "post": {
        "operationId": "submitCampaignReview",
        "summary": "submit campaign review",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:write"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/campaigns/{id}/approve": {
      "post": {
        "operationId": "approveCampaign",
        "summary": "approve campaign",
        "description": "Provider or release gates are unconfigured. No remote success, approval or sending is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reserved shape; the current development command always returns a documented provider/release error.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:approve"
        ],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/campaigns/{id}/send": {
      "post": {
        "operationId": "sendCampaign",
        "summary": "send campaign",
        "description": "Provider or release gates are unconfigured. No remote success, approval or sending is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reserved shape; the current development command always returns a documented provider/release error.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:send"
        ],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/campaigns/{id}/schedule": {
      "post": {
        "operationId": "scheduleCampaign",
        "summary": "schedule campaign",
        "description": "Provider or release gates are unconfigured. No remote success, approval or sending is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reserved shape; the current development command always returns a documented provider/release error.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:send"
        ],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/campaigns/{id}/pause": {
      "post": {
        "operationId": "pauseCampaign",
        "summary": "pause campaign",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:send"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/campaigns/{id}/resume": {
      "post": {
        "operationId": "resumeCampaign",
        "summary": "resume campaign",
        "description": "Provider or release gates are unconfigured. No remote success, approval or sending is implied.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reserved shape; the current development command always returns a documented provider/release error.",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:send"
        ],
        "x-lettercape-availability": "blocked",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/campaigns/{id}/cancel": {
      "post": {
        "operationId": "cancelCampaign",
        "summary": "cancel campaign",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [
          "campaigns:send"
        ],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/api-keys/{id}/rotate": {
      "post": {
        "operationId": "rotateApiKey",
        "summary": "rotate api key",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "edit"
      }
    },
    "/v1/api-keys/{id}/revoke": {
      "post": {
        "operationId": "revokeApiKey",
        "summary": "revoke api key",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              },
              "example": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "getUsage",
        "summary": "get usage",
        "description": "Implemented development behavior; all full-GA release obligations remain open.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/catalogue": {
      "get": {
        "operationId": "getBillingCatalogue",
        "summary": "get billing catalogue",
        "description": "Session-only current active Owner/Billing, no bearer cookie fallback. Redacted financial metadata only; no customer, instrument, provider payment identity or checkout session in ordinary reads. Explicit no-store. Billing safety access remains available after paid editing expires. Native merchant/provider activation remains separately unqualified.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCatalogueResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Billing"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": false,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/summary": {
      "get": {
        "operationId": "getBillingSummary",
        "summary": "get billing summary",
        "description": "Session-only current active Owner/Billing, no bearer cookie fallback. Redacted financial metadata only; no customer, instrument, provider payment identity or checkout session in ordinary reads. Explicit no-store. Billing safety access remains available after paid editing expires. Native merchant/provider activation remains separately unqualified. Internal subscription/paid-term targets, immutable renewal total/date and strict seven elapsed day refund policy hints are reread; hints grant no financial authority.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSummaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Billing"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": false,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/commands": {
      "get": {
        "operationId": "listBillingCommands",
        "summary": "list billing commands",
        "description": "Session-only current active Owner/Billing, no bearer cookie fallback. Redacted financial metadata only; no customer, instrument, provider payment identity or checkout session in ordinary reads. Explicit no-store. Billing safety access remains available after paid editing expires. Native merchant/provider activation remains separately unqualified. Default25/max100,15-minute signed principal/workspace/filter-bound cursor. Immutable original catalogue, no contact/request/provider keys.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "description": "Opaque signed cursor bound to account, workspace, resource and filters; expires in15minutes."
          },
          {
            "name": "created_after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          },
          {
            "name": "created_before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "UTC instant; inclusive lower/exclusive upper bound. Keep unchanged while following pages."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCommandsPage"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Billing"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": false,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/commands/{id}": {
      "get": {
        "operationId": "getBillingCommand",
        "summary": "get billing command",
        "description": "Session-only current active Owner/Billing, no bearer cookie fallback. Redacted financial metadata only; no customer, instrument, provider payment identity or checkout session in ordinary reads. Explicit no-store. Billing safety access remains available after paid editing expires. Native merchant/provider activation remains separately unqualified. Lifecycle requested catalogue/effective_at/phase/replacement_required are separate from original catalogue. change_plan.succeeded confirms only old mandate cancellation; replacement requires a later explicit checkout and verified CHARGE.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner",
          "Billing"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": false,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/commands/{id}/session": {
      "get": {
        "operationId": "getBillingSession",
        "summary": "get billing session",
        "description": "Current active Owner session, exact command actor and X-Actor-Id, fresh two-factor proof required. Opaque unexpired session only, no bearer authority. Expired session returns null and cannot silently create another mandate. Explicit no-store.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "responses": {
          "200": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-roles": [
          "Owner"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": true,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": false,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/checkout": {
      "post": {
        "operationId": "checkoutBilling",
        "summary": "checkout billing",
        "description": "Current active Owner session only; fresh two-factor verification less than ten minutes, exact actor/workspace, same-origin, expected billing version and retained8–128 character key. Accepted command means queued/readback, never paid entitlement. Cancelling accepts exactly one internal paid_term_id or subscription_id, including before first CHARGE. No provider ID or arbitrary payment selector. No native/provider activation claim.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Strict application/json with optional UTF-8 charset only; no Content-Encoding. At most16384 actual bytes, fatal UTF-8, exact declared length,30-second deadline. Owner session, approved Origin, exact actor, recent two-factor verification, expected billing version and retained header key required. Catalogue and stored payment authority remain authoritative.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCheckoutInput"
              },
              "example": {
                "selection": {
                  "plan_id": "premium",
                  "interval": "monthly",
                  "additional_seats": 0
                },
                "catalogue_version": "lettercape-inr-v1",
                "expected_billing_version": 0,
                "acknowledgment": {
                  "amount_paise": 149900,
                  "currency": "INR",
                  "interval": "monthly"
                },
                "customer": {
                  "name": "Example Owner",
                  "email": "owner@example.test",
                  "phone": "9999999999"
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-roles": [
          "Owner"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": true,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/change-plan": {
      "post": {
        "operationId": "changeBillingPlan",
        "summary": "change billing plan",
        "description": "Current active Owner session only; fresh two-factor verification less than ten minutes, exact actor/workspace, same-origin, expected billing version and retained8–128 character key. Accepted command means queued/readback, never paid entitlement. Cancelling accepts exactly one internal paid_term_id or subscription_id, including before first CHARGE. No provider ID or arbitrary payment selector. No native/provider activation claim.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Strict application/json with optional UTF-8 charset only; no Content-Encoding. At most16384 actual bytes, fatal UTF-8, exact declared length,30-second deadline. Owner session, approved Origin, exact actor, recent two-factor verification, expected billing version and retained header key required. Catalogue and stored payment authority remain authoritative.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingChangePlanInput"
              },
              "example": {
                "selection": {
                  "plan_id": "premium",
                  "interval": "monthly",
                  "additional_seats": 0
                },
                "catalogue_version": "lettercape-inr-v1",
                "expected_billing_version": 1,
                "paid_term_id": "11111111-1111-4111-8111-111111111111",
                "effective_at": "2026-11-01T00:00:00Z",
                "acknowledgment": {
                  "amount_paise": 149900,
                  "currency": "INR",
                  "interval": "monthly"
                },
                "replacement_consent": true
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-roles": [
          "Owner"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": true,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/cancel": {
      "post": {
        "operationId": "cancelBilling",
        "summary": "cancel billing",
        "description": "Current active Owner session only; fresh two-factor verification less than ten minutes, exact actor/workspace, same-origin, expected billing version and retained8–128 character key. Accepted command means queued/readback, never paid entitlement. Cancelling accepts exactly one internal paid_term_id or subscription_id, including before first CHARGE. No provider ID or arbitrary payment selector. No native/provider activation claim.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Strict application/json with optional UTF-8 charset only; no Content-Encoding. At most16384 actual bytes, fatal UTF-8, exact declared length,30-second deadline. Owner session, approved Origin, exact actor, recent two-factor verification, expected billing version and retained header key required. Catalogue and stored payment authority remain authoritative.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingCancelInput"
              },
              "example": {
                "expected_billing_version": 1,
                "subscription_id": "11111111-1111-4111-8111-111111111111",
                "acknowledgment": {
                  "amount_paise": 149900,
                  "currency": "INR",
                  "interval": "monthly"
                },
                "confirm_cancellation": true
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-roles": [
          "Owner"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": true,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    },
    "/v1/billing/refund": {
      "post": {
        "operationId": "refundBilling",
        "summary": "refund billing",
        "description": "Current active Owner session only; fresh two-factor verification less than ten minutes, exact actor/workspace, same-origin, expected billing version and retained8–128 character key. Accepted command means queued/readback, never paid entitlement. Cancelling accepts exactly one internal paid_term_id or subscription_id, including before first CHARGE. No provider ID or arbitrary payment selector. No native/provider activation claim.",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "X-Workspace-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Required for tenant session requests; bearer keys cannot override their workspace."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "description": "Keep the same key and exact payload during uncertain recovery; mismatch409. Raw key secret is never stored in receipts."
          },
          {
            "name": "X-Actor-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "description": "Exact authenticated account fence. Required for financial commands and checkout sessions; mismatch409. Does not grant authority."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Strict application/json with optional UTF-8 charset only; no Content-Encoding. At most16384 actual bytes, fatal UTF-8, exact declared length,30-second deadline. Owner session, approved Origin, exact actor, recent two-factor verification, expected billing version and retained header key required. Catalogue and stored payment authority remain authoritative.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingRefundInput"
              },
              "example": {
                "expected_billing_version": 1,
                "paid_term_id": "11111111-1111-4111-8111-111111111111",
                "amount_paise": 149900,
                "currency": "INR",
                "confirm_full_refund_cancellation": true
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Acknowledged result",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "no-store"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "type": "string",
                  "const": "nosniff"
                }
              },
              "Location": {
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingCommandResponse"
                }
              }
            }
          },
          "400": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "403": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "404": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "405": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "408": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "409": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "412": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "413": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "415": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "422": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "428": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "429": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Minimum seconds before retry"
              }
            }
          },
          "499": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "500": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": false
                  }
                }
              }
            }
          },
          "503": {
            "description": "Safe error; preserve request ID. Business errors do not automatically retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "request_id": "req-example",
                  "error": {
                    "code": "STATE_CONFLICT",
                    "message": "Resolve the documented request or setup requirement.",
                    "retryable": true
                  }
                }
              }
            }
          }
        },
        "x-lettercape-body-max-bytes": 16384,
        "x-lettercape-roles": [
          "Owner"
        ],
        "x-lettercape-session-only": true,
        "x-lettercape-fresh-mfa-required": true,
        "x-lettercape-scopes": [],
        "x-lettercape-availability": "development",
        "x-lettercape-idempotent-command": true,
        "x-lettercape-paid-admission": "safety"
      }
    }
  },
  "components": {
    "schemas": {
      "CreateEmailSeriesInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "emails": {
            "minItems": 2,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "spec": {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "enum": [
                        "1.0",
                        "1.1",
                        "1.2",
                        "1.3",
                        "1.4"
                      ]
                    },
                    "editing_mode": {
                      "type": "string",
                      "enum": [
                        "structured",
                        "raw_html"
                      ]
                    },
                    "locale": {
                      "type": "string",
                      "enum": [
                        "en-US",
                        "en-GB",
                        "fr-FR",
                        "de-DE",
                        "es-ES",
                        "it-IT",
                        "pt-BR",
                        "nl-NL",
                        "sv-SE",
                        "da-DK",
                        "no-NO",
                        "fi-FI",
                        "pl-PL",
                        "cs-CZ",
                        "tr-TR",
                        "ja-JP",
                        "ko-KR",
                        "zh-CN",
                        "zh-TW",
                        "hi-IN",
                        "ar-SA",
                        "he-IL"
                      ]
                    },
                    "direction": {
                      "type": "string",
                      "enum": [
                        "ltr",
                        "rtl"
                      ]
                    },
                    "subject": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "preheader": {
                      "type": "string",
                      "maxLength": 250
                    },
                    "brand_kit_version_id": {
                      "type": "string",
                      "maxLength": 80
                    },
                    "theme": {
                      "type": "object",
                      "properties": {
                        "content_width_px": {
                          "type": "integer",
                          "minimum": 320,
                          "maximum": 800
                        },
                        "background": {
                          "type": "string",
                          "pattern": "^#[\\da-fA-F]{6}$"
                        },
                        "accent": {
                          "type": "string",
                          "pattern": "^#[\\da-fA-F]{6}$"
                        },
                        "font_stack": {
                          "type": "string",
                          "enum": [
                            "Arial, sans-serif",
                            "Georgia, serif",
                            "Verdana, sans-serif"
                          ]
                        }
                      },
                      "required": [
                        "content_width_px",
                        "background",
                        "accent",
                        "font_stack"
                      ],
                      "additionalProperties": false
                    },
                    "sections": {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "hero"
                                  },
                                  "heading": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "heading",
                                  "text"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "inline": {
                                    "minItems": 1,
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 80
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "text"
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 10000
                                            },
                                            "marks": {
                                              "maxItems": 2,
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "enum": [
                                                  "bold",
                                                  "italic"
                                                ]
                                              }
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "text",
                                            "marks"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 80
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "link"
                                            },
                                            "label": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 10000
                                            },
                                            "href": {
                                              "type": "string",
                                              "maxLength": 2048
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "label",
                                            "href"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 80
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "break"
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 80
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "field"
                                            },
                                            "key": {
                                              "type": "string",
                                              "const": "first_name"
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 1000
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "key",
                                            "fallback"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 80
                                            },
                                            "type": {
                                              "type": "string",
                                              "const": "isolate"
                                            },
                                            "text": {
                                              "type": "string",
                                              "maxLength": 10000
                                            },
                                            "direction": {
                                              "type": "string",
                                              "enum": [
                                                "ltr",
                                                "rtl"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "type",
                                            "text",
                                            "direction"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "text"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "image"
                                  },
                                  "src": {
                                    "type": "string",
                                    "maxLength": 2048
                                  },
                                  "asset_ref": {
                                    "type": "object",
                                    "properties": {
                                      "asset_id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      },
                                      "variant_id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      }
                                    },
                                    "required": [
                                      "asset_id",
                                      "variant_id"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "fallback_ref": {
                                    "type": "object",
                                    "properties": {
                                      "asset_id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      },
                                      "variant_id": {
                                        "type": "string",
                                        "format": "uuid",
                                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                      }
                                    },
                                    "required": [
                                      "asset_id",
                                      "variant_id"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "alt": {
                                    "type": "string",
                                    "maxLength": 500
                                  },
                                  "decorative": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "alt"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "button"
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 200
                                  },
                                  "href": {
                                    "type": "string",
                                    "maxLength": 2048
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "label",
                                  "href"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "divider"
                                  }
                                },
                                "required": [
                                  "id",
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "social"
                                  },
                                  "links": {
                                    "maxItems": 10,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "label": {
                                          "type": "string",
                                          "maxLength": 80
                                        },
                                        "href": {
                                          "type": "string",
                                          "maxLength": 2048
                                        }
                                      },
                                      "required": [
                                        "label",
                                        "href"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "links"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "legal_footer"
                                  },
                                  "identity": {
                                    "type": "string",
                                    "maxLength": 500
                                  },
                                  "address": {
                                    "type": "string",
                                    "maxLength": 1000
                                  },
                                  "unsubscribe_slot": {
                                    "type": "boolean",
                                    "const": true
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "identity",
                                  "address",
                                  "unsubscribe_slot"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "product_card"
                                  },
                                  "title": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "description": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "price": {
                                    "type": "string",
                                    "maxLength": 100
                                  },
                                  "money": {
                                    "type": "object",
                                    "properties": {
                                      "version": {
                                        "type": "string",
                                        "const": "explicit-money-1"
                                      },
                                      "amount": {
                                        "type": "string",
                                        "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "format_locale": {
                                        "type": "string",
                                        "enum": [
                                          "en-US",
                                          "en-GB",
                                          "fr-FR",
                                          "de-DE",
                                          "es-ES",
                                          "it-IT",
                                          "pt-BR",
                                          "nl-NL",
                                          "sv-SE",
                                          "da-DK",
                                          "no-NO",
                                          "fi-FI",
                                          "pl-PL",
                                          "cs-CZ",
                                          "tr-TR",
                                          "ja-JP",
                                          "ko-KR",
                                          "zh-CN",
                                          "zh-TW",
                                          "hi-IN",
                                          "ar-SA",
                                          "he-IL"
                                        ]
                                      },
                                      "numbering_system": {
                                        "type": "string",
                                        "enum": [
                                          "locale",
                                          "latn"
                                        ]
                                      },
                                      "display": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    },
                                    "required": [
                                      "version",
                                      "amount",
                                      "currency",
                                      "format_locale",
                                      "numbering_system",
                                      "display"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "href": {
                                    "type": "string",
                                    "maxLength": 2048
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "title",
                                  "description",
                                  "price",
                                  "href"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "custom_html"
                                  },
                                  "html": {
                                    "type": "string",
                                    "maxLength": 200000
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "html"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              },
                              "type": {
                                "type": "string",
                                "const": "columns"
                              },
                              "columns": {
                                "minItems": 1,
                                "maxItems": 2,
                                "type": "array",
                                "items": {
                                  "maxItems": 20,
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "hero"
                                          },
                                          "heading": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "heading",
                                          "text"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "text"
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "inline": {
                                            "minItems": 1,
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 80
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "maxLength": 10000
                                                    },
                                                    "marks": {
                                                      "maxItems": 2,
                                                      "type": "array",
                                                      "items": {
                                                        "type": "string",
                                                        "enum": [
                                                          "bold",
                                                          "italic"
                                                        ]
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "type",
                                                    "text",
                                                    "marks"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 80
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "const": "link"
                                                    },
                                                    "label": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 10000
                                                    },
                                                    "href": {
                                                      "type": "string",
                                                      "maxLength": 2048
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "type",
                                                    "label",
                                                    "href"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 80
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "const": "break"
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "type"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 80
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "const": "field"
                                                    },
                                                    "key": {
                                                      "type": "string",
                                                      "const": "first_name"
                                                    },
                                                    "fallback": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 1000
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "type",
                                                    "key",
                                                    "fallback"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 80
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "const": "isolate"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "maxLength": 10000
                                                    },
                                                    "direction": {
                                                      "type": "string",
                                                      "enum": [
                                                        "ltr",
                                                        "rtl"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "id",
                                                    "type",
                                                    "text",
                                                    "direction"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              ]
                                            }
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "text"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "image"
                                          },
                                          "src": {
                                            "type": "string",
                                            "maxLength": 2048
                                          },
                                          "asset_ref": {
                                            "type": "object",
                                            "properties": {
                                              "asset_id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "variant_id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              }
                                            },
                                            "required": [
                                              "asset_id",
                                              "variant_id"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "fallback_ref": {
                                            "type": "object",
                                            "properties": {
                                              "asset_id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              },
                                              "variant_id": {
                                                "type": "string",
                                                "format": "uuid",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                              }
                                            },
                                            "required": [
                                              "asset_id",
                                              "variant_id"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "alt": {
                                            "type": "string",
                                            "maxLength": 500
                                          },
                                          "decorative": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "alt"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "button"
                                          },
                                          "label": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 200
                                          },
                                          "href": {
                                            "type": "string",
                                            "maxLength": 2048
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "label",
                                          "href"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "divider"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "social"
                                          },
                                          "links": {
                                            "maxItems": 10,
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "label": {
                                                  "type": "string",
                                                  "maxLength": 80
                                                },
                                                "href": {
                                                  "type": "string",
                                                  "maxLength": 2048
                                                }
                                              },
                                              "required": [
                                                "label",
                                                "href"
                                              ],
                                              "additionalProperties": false
                                            }
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "links"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "legal_footer"
                                          },
                                          "identity": {
                                            "type": "string",
                                            "maxLength": 500
                                          },
                                          "address": {
                                            "type": "string",
                                            "maxLength": 1000
                                          },
                                          "unsubscribe_slot": {
                                            "type": "boolean",
                                            "const": true
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "identity",
                                          "address",
                                          "unsubscribe_slot"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "product_card"
                                          },
                                          "title": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "description": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "price": {
                                            "type": "string",
                                            "maxLength": 100
                                          },
                                          "money": {
                                            "type": "object",
                                            "properties": {
                                              "version": {
                                                "type": "string",
                                                "const": "explicit-money-1"
                                              },
                                              "amount": {
                                                "type": "string",
                                                "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                                              },
                                              "currency": {
                                                "type": "string",
                                                "pattern": "^[A-Z]{3}$"
                                              },
                                              "format_locale": {
                                                "type": "string",
                                                "enum": [
                                                  "en-US",
                                                  "en-GB",
                                                  "fr-FR",
                                                  "de-DE",
                                                  "es-ES",
                                                  "it-IT",
                                                  "pt-BR",
                                                  "nl-NL",
                                                  "sv-SE",
                                                  "da-DK",
                                                  "no-NO",
                                                  "fi-FI",
                                                  "pl-PL",
                                                  "cs-CZ",
                                                  "tr-TR",
                                                  "ja-JP",
                                                  "ko-KR",
                                                  "zh-CN",
                                                  "zh-TW",
                                                  "hi-IN",
                                                  "ar-SA",
                                                  "he-IL"
                                                ]
                                              },
                                              "numbering_system": {
                                                "type": "string",
                                                "enum": [
                                                  "locale",
                                                  "latn"
                                                ]
                                              },
                                              "display": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 100
                                              }
                                            },
                                            "required": [
                                              "version",
                                              "amount",
                                              "currency",
                                              "format_locale",
                                              "numbering_system",
                                              "display"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "href": {
                                            "type": "string",
                                            "maxLength": 2048
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "title",
                                          "description",
                                          "price",
                                          "href"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "custom_html"
                                          },
                                          "html": {
                                            "type": "string",
                                            "maxLength": 200000
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "html"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "columns"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "raw_html": {
                      "type": "string",
                      "maxLength": 2097152
                    },
                    "tracking": {
                      "type": "object",
                      "properties": {
                        "utm_source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "utm_medium": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "utm_campaign": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": [
                        "utm_source",
                        "utm_medium",
                        "utm_campaign"
                      ],
                      "additionalProperties": false
                    },
                    "asset_registry": {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "asset_id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "variant_id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "required": [
                          "asset_id",
                          "variant_id"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schema_version",
                    "editing_mode",
                    "locale",
                    "direction",
                    "subject",
                    "preheader",
                    "brand_kit_version_id",
                    "theme",
                    "sections"
                  ],
                  "additionalProperties": false
                },
                "delay_hours": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 8760
                }
              },
              "required": [
                "title",
                "spec",
                "delay_hours"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "title",
          "emails"
        ],
        "additionalProperties": false,
        "description": "Atomic2–10 editable content drafts. Delays are notes before each email, first from an eventual start and later from the previous email. No scheduling, enrollment or sending. JSON request limited to2MiB; existing EmailSourceSpec semantic validation remains authoritative."
      },
      "UpdateEmailSeriesInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "steps": {
            "minItems": 2,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "delay_hours": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 8760
                }
              },
              "required": [
                "email_id",
                "delay_hours"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "title",
          "steps"
        ],
        "additionalProperties": false,
        "description": "Every stable existing member exactly once in requested order. Server additionally enforces membership and independent series CAS; no content save or scheduling."
      },
      "EmailSeriesSummary": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "email_count": {
            "type": "integer",
            "minimum": 2,
            "maximum": 10
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "id",
          "title",
          "version",
          "email_count",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "EmailSeriesResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "actor_id": {
            "type": "string",
            "minLength": 1
          },
          "series": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "email_count": {
                "type": "integer",
                "minimum": 2,
                "maximum": 10
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "steps": {
                "minItems": 2,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "email_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 10
                    },
                    "delay_hours": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 8760
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "doc_version": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "subject": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "email_id",
                    "position",
                    "delay_hours",
                    "title",
                    "doc_version",
                    "subject"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "title",
              "version",
              "email_count",
              "created_at",
              "updated_at",
              "steps"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "workspace_id",
          "actor_id",
          "series"
        ],
        "additionalProperties": {}
      },
      "EmailSeriesMembershipResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "actor_id": {
            "type": "string"
          },
          "series": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "email_count": {
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 10
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "steps": {
                    "minItems": 2,
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "email_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "position": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10
                        },
                        "delay_hours": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 8760
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "doc_version": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "subject": {
                          "type": "string",
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "email_id",
                        "position",
                        "delay_hours",
                        "title",
                        "doc_version",
                        "subject"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "title",
                  "version",
                  "email_count",
                  "created_at",
                  "updated_at",
                  "steps"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "workspace_id",
          "actor_id",
          "series"
        ],
        "additionalProperties": false
      },
      "NamedCheckpointInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "description": "Server trims the single-line name and validates its nonblank120-character bound and absence of controls; normalization and refinements are authoritative on the server."
      },
      "CheckpointNameInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_name_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          }
        },
        "required": [
          "name",
          "expected_name_version"
        ],
        "additionalProperties": false,
        "description": "Nullable name clears metadata. expected_name_version is the observed independent name version, not the draft version. Name normalization/refinements are authoritative on the server."
      },
      "CheckpointNameView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "name_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          }
        },
        "required": [
          "id",
          "email_id",
          "name",
          "name_version"
        ]
      },
      "HistoryRevision": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "name_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "revision_no": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "subject": {
            "type": "string"
          },
          "artifact_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "id",
          "email_id",
          "name",
          "name_version",
          "revision_no",
          "subject",
          "artifact_hash",
          "created_at"
        ]
      },
      "CheckpointHistoryPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "email_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name_version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "revision_no": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "subject": {
                  "type": "string"
                },
                "artifact_hash": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                }
              },
              "required": [
                "id",
                "email_id",
                "name",
                "name_version",
                "revision_no",
                "subject",
                "artifact_hash",
                "created_at"
              ]
            }
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "view": {
            "type": "string",
            "enum": [
              "recent",
              "all",
              "named"
            ]
          },
          "window_limit": {
            "anyOf": [
              {
                "type": "number",
                "const": 50
              },
              {
                "type": "null"
              }
            ]
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "data",
          "total_count",
          "has_more",
          "next_cursor",
          "view",
          "window_limit",
          "request_id"
        ]
      },
      "NamedCheckpointResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "revision": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "email_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name_version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "revision_no": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "subject": {
                "type": "string"
              },
              "artifact_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              }
            },
            "required": [
              "id",
              "email_id",
              "name",
              "name_version",
              "revision_no",
              "subject",
              "artifact_hash",
              "created_at"
            ]
          }
        },
        "required": [
          "request_id",
          "revision"
        ]
      },
      "CheckpointNameResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "checkpoint": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "email_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name_version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              }
            },
            "required": [
              "id",
              "email_id",
              "name",
              "name_version"
            ]
          }
        },
        "required": [
          "request_id",
          "checkpoint"
        ]
      },
      "InvitationCreateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "pattern": "^\\s*(?=\\S{1,254}\\s*$)(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}\\s*$",
            "description": "Recipient email is trimmed before server validation; the trimmed address must match the shared email constraint and contain1–254 characters. Whitespace padding is accepted and not stored."
          },
          "role": {
            "type": "string",
            "enum": [
              "Admin",
              "Editor",
              "Viewer",
              "Billing"
            ]
          },
          "notes": {
            "default": "",
            "type": "string",
            "maxLength": 4000
          },
          "review_due_at": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "email",
          "role",
          "request_id"
        ],
        "additionalProperties": false
      },
      "InvitationUpdateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "pattern": "^\\s*(?=\\S{1,254}\\s*$)(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}\\s*$",
            "description": "Recipient email is trimmed before server validation; the trimmed address must match the shared email constraint and contain1–254 characters. Whitespace padding is accepted and not stored."
          },
          "role": {
            "type": "string",
            "enum": [
              "Admin",
              "Editor",
              "Viewer",
              "Billing"
            ]
          },
          "notes": {
            "default": "",
            "type": "string",
            "maxLength": 4000
          },
          "review_due_at": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "email",
          "role",
          "expected_version"
        ],
        "additionalProperties": false
      },
      "InvitationStateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "InvitationRequestView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "role": {
            "type": "string",
            "enum": [
              "Admin",
              "Editor",
              "Viewer",
              "Billing"
            ]
          },
          "notes": {
            "type": "string",
            "maxLength": 4000
          },
          "review_due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "withdrawn"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "created_by": {
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "planning_status": {
            "type": "string",
            "enum": [
              "draft",
              "withdrawn",
              "review_due"
            ]
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "delivery_enabled": {
            "type": "boolean",
            "const": false
          },
          "acceptance_enabled": {
            "type": "boolean",
            "const": false
          },
          "credentials_created": {
            "type": "boolean",
            "const": false
          },
          "seats_reserved": {
            "type": "number",
            "const": 0
          }
        },
        "required": [
          "workspace_id",
          "id",
          "email",
          "role",
          "notes",
          "review_due_at",
          "state",
          "version",
          "created_by",
          "updated_by",
          "created_at",
          "updated_at",
          "planning_status",
          "observed_at",
          "delivery_enabled",
          "acceptance_enabled",
          "credentials_created",
          "seats_reserved"
        ],
        "additionalProperties": false
      },
      "InvitationRequestHistory": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "command": {
            "type": "string",
            "enum": [
              "created",
              "updated",
              "withdrawn",
              "reopened"
            ]
          },
          "snapshot": {
            "type": "object",
            "properties": {
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "email": {
                "type": "string",
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "role": {
                "type": "string",
                "enum": [
                  "Admin",
                  "Editor",
                  "Viewer",
                  "Billing"
                ]
              },
              "notes": {
                "type": "string",
                "maxLength": 4000
              },
              "review_due_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "draft",
                  "withdrawn"
                ]
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "created_by": {
                "type": "string"
              },
              "updated_by": {
                "type": "string"
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              }
            },
            "required": [
              "workspace_id",
              "id",
              "email",
              "role",
              "notes",
              "review_due_at",
              "state",
              "version",
              "created_by",
              "updated_by",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          },
          "created_by": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "workspace_id",
          "id",
          "request_id",
          "version",
          "command",
          "snapshot",
          "created_by",
          "created_at"
        ],
        "additionalProperties": false
      },
      "InvitationPlanningContext": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspace_name": {
            "type": "string"
          },
          "actor_id": {
            "type": "string"
          },
          "actor_role": {
            "type": "string",
            "enum": [
              "Owner",
              "Admin"
            ]
          },
          "delivery_enabled": {
            "type": "boolean",
            "const": false
          },
          "acceptance_enabled": {
            "type": "boolean",
            "const": false
          },
          "credentials_created": {
            "type": "boolean",
            "const": false
          },
          "seats_reserved": {
            "type": "number",
            "const": 0
          },
          "prerequisites": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "workspace_id",
          "workspace_name",
          "actor_id",
          "actor_role",
          "delivery_enabled",
          "acceptance_enabled",
          "credentials_created",
          "seats_reserved",
          "prerequisites"
        ],
        "additionalProperties": false
      },
      "LocaleReviewInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "expected_source_doc_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "outcome": {
            "type": "string",
            "enum": [
              "content_reviewed",
              "changes_requested"
            ]
          },
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          }
        },
        "required": [
          "revision_id",
          "source_revision_id",
          "expected_source_doc_version",
          "outcome",
          "note"
        ],
        "additionalProperties": false
      },
      "LocaleReviewRecord": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "revision_no": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "target_doc_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "source_revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_revision_no": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "observed_source_doc_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "outcome": {
            "type": "string",
            "enum": [
              "content_reviewed",
              "changes_requested"
            ]
          },
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "created_by": {
            "type": "string",
            "minLength": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "id",
          "email_id",
          "revision_id",
          "revision_no",
          "target_doc_version",
          "source_revision_id",
          "source_revision_no",
          "observed_source_doc_version",
          "outcome",
          "note",
          "created_by",
          "created_at"
        ],
        "additionalProperties": false
      },
      "LocaleReviewContext": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "actor_id": {
            "type": "string",
            "minLength": 1
          },
          "email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "doc_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "source_email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_revision_no": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "source_doc_version": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "current_source_doc_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "target_revision": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "revision_no": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  },
                  "source_doc_version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2147483647
                  }
                },
                "required": [
                  "id",
                  "revision_no",
                  "source_doc_version"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "workspace_id",
          "actor_id",
          "email_id",
          "doc_version",
          "source_email_id",
          "source_revision_id",
          "source_revision_no",
          "source_doc_version",
          "current_source_doc_version",
          "target_revision"
        ],
        "additionalProperties": false
      },
      "LocaleReviewHistoryItem": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "revision_no": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "target_doc_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "source_revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_revision_no": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "observed_source_doc_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "outcome": {
            "type": "string",
            "enum": [
              "content_reviewed",
              "changes_requested"
            ]
          },
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "created_by": {
            "type": "string",
            "minLength": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "applicability": {
            "type": "string",
            "enum": [
              "current",
              "target_changed",
              "source_changed",
              "both_changed"
            ]
          }
        },
        "required": [
          "id",
          "email_id",
          "revision_id",
          "revision_no",
          "target_doc_version",
          "source_revision_id",
          "source_revision_no",
          "observed_source_doc_version",
          "outcome",
          "note",
          "created_by",
          "created_at",
          "applicability"
        ],
        "additionalProperties": false
      },
      "SubmissionLedgerInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483646
          },
          "expected_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "expected_version",
          "expected_digest"
        ],
        "additionalProperties": false
      },
      "SubmissionLedgerView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "campaign_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "configuration_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "configuration_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "revision_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "artifact_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "snapshot_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "snapshot_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "cancelled",
              "failed"
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "processed_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "pending_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "skipped_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "cancelled_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "accepted_count": {
            "type": "number",
            "const": 0
          },
          "uncertain_count": {
            "type": "number",
            "const": 0
          },
          "attempt_count": {
            "type": "number",
            "const": 0
          },
          "created_by": {
            "type": "string",
            "minLength": 1
          },
          "created_api_key_id": {
            "anyOf": [
              {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "authorization_issued": {
            "type": "boolean",
            "const": false
          },
          "dispatch_enabled": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "id",
          "campaign_id",
          "configuration_id",
          "configuration_version",
          "configuration_digest",
          "revision_id",
          "artifact_hash",
          "snapshot_id",
          "snapshot_digest",
          "status",
          "total_count",
          "processed_count",
          "pending_count",
          "skipped_count",
          "cancelled_count",
          "accepted_count",
          "uncertain_count",
          "attempt_count",
          "created_by",
          "created_api_key_id",
          "created_at",
          "updated_at",
          "completed_at",
          "authorization_issued",
          "dispatch_enabled"
        ],
        "additionalProperties": false
      },
      "StagedRecipientView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "ledger_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "configuration_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "delivery_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "contact_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "captured_locale": {
            "type": "string",
            "maxLength": 35,
            "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
          },
          "captured_reason": {
            "type": "string",
            "enum": [
              "ELIGIBLE",
              "SUPPRESSED",
              "CONTACT_DELETED",
              "CONSENT_NOT_CONFIRMED"
            ]
          },
          "captured_consent_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "logical_send_key": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "submission_state": {
            "type": "string",
            "enum": [
              "pending",
              "skipped",
              "cancelled"
            ]
          },
          "outcome": {
            "type": "string",
            "const": "unknown"
          },
          "authorization_issued": {
            "type": "boolean",
            "const": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "ledger_id",
          "configuration_id",
          "delivery_id",
          "contact_id",
          "captured_locale",
          "captured_reason",
          "captured_consent_version",
          "logical_send_key",
          "submission_state",
          "outcome",
          "authorization_issued",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "DeliveryHistoryView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "delivery_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "submission_state": {
            "type": "string",
            "enum": [
              "pending",
              "skipped",
              "cancelled"
            ]
          },
          "outcome": {
            "type": "string",
            "const": "unknown"
          },
          "reason": {
            "type": "string",
            "enum": [
              "ELIGIBLE",
              "SUPPRESSED",
              "CONTACT_DELETED",
              "CONSENT_NOT_CONFIRMED",
              "STAGING_CANCELLED"
            ]
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "delivery_id",
          "submission_state",
          "outcome",
          "reason",
          "recorded_at"
        ],
        "additionalProperties": false
      },
      "DeliveryAttemptView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "delivery_id": {
            "type": "string",
            "allOf": [
              {
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "pattern": "^[0-9a-f-]+$"
              }
            ]
          },
          "attempt_no": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "submission_state": {
            "type": "string",
            "enum": [
              "submitting",
              "accepted",
              "uncertain",
              "failed_permanent"
            ]
          },
          "request_started_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "accepted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "error_class": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "transport",
                  "provider_rejected",
                  "unknown"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "delivery_id",
          "attempt_no",
          "submission_state",
          "request_started_at",
          "accepted_at",
          "error_class"
        ],
        "additionalProperties": false
      },
      "SaveEmailTemplateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "source_revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "expected_artifact_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "name",
          "source_revision_id",
          "expected_artifact_hash"
        ],
        "additionalProperties": false
      },
      "ArchiveEmailTemplateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "RemixEmailTemplateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "expected_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          },
          "expected_artifact_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "title",
          "expected_version",
          "expected_artifact_hash"
        ],
        "additionalProperties": false
      },
      "EmailTemplateView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          },
          "source_revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_revision_no": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          },
          "source_doc_version": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "source_title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "artifact_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "brand_kit_version_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "locale": {
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "ltr",
              "rtl"
            ]
          },
          "editing_mode": {
            "type": "string",
            "enum": [
              "structured",
              "raw_html"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "state",
          "version",
          "source_revision_id",
          "source_email_id",
          "source_revision_no",
          "source_doc_version",
          "source_title",
          "artifact_hash",
          "brand_kit_version_id",
          "locale",
          "direction",
          "editing_mode",
          "created_at",
          "archived_at"
        ],
        "additionalProperties": false
      },
      "HubSpotFooterSettings": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "company_name": {
            "type": "string",
            "maxLength": 500
          },
          "company_street_address_1": {
            "type": "string",
            "maxLength": 200
          },
          "company_street_address_2": {
            "type": "string",
            "maxLength": 200
          },
          "company_city": {
            "type": "string",
            "maxLength": 200
          },
          "company_state": {
            "type": "string",
            "maxLength": 200
          },
          "company_zip": {
            "type": "string",
            "maxLength": 50
          },
          "company_country": {
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "company_name",
          "company_street_address_1",
          "company_street_address_2",
          "company_city",
          "company_state",
          "company_zip",
          "company_country"
        ],
        "additionalProperties": false,
        "description": "Seven explicit locally declared footer values. Server validation additionally enforces composed address length, well-formed Unicode, controls, nonblank required values and authored delimiters; JSON Schema omits these refinements."
      },
      "HubSpotReview": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination": {
            "type": "string",
            "const": "hubspot"
          },
          "mapping_version": {
            "type": "string",
            "const": "hubspot-coded-footer-1"
          },
          "comparison_version": {
            "type": "string",
            "const": "hubspot-footer-comparison-1"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_artifact_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "destination_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "html_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "text_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "settings_digest": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "settings_origin": {
            "type": "string",
            "const": "locally_declared"
          },
          "remote_export_enabled": {
            "type": "boolean",
            "const": false
          },
          "account_settings_verified": {
            "type": "boolean",
            "const": false
          },
          "native_conformance_verified": {
            "type": "boolean",
            "const": false
          },
          "management_link_verified": {
            "type": "boolean",
            "const": false
          },
          "transformations": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          "blockers": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string",
                "const": "CONNECTION_AUTH_MODE_UNAPPROVED"
              },
              {
                "type": "string",
                "const": "HUBSPOT_ACCOUNT_SETTINGS_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "MANAGEMENT_LINK_UNVERIFIED"
              }
            ],
            "items": false,
            "minItems": 7,
            "maxItems": 7
          }
        },
        "required": [
          "destination",
          "mapping_version",
          "comparison_version",
          "revision_id",
          "source_artifact_hash",
          "destination_hash",
          "html_sha256",
          "text_sha256",
          "settings_digest",
          "settings_origin",
          "remote_export_enabled",
          "account_settings_verified",
          "native_conformance_verified",
          "management_link_verified",
          "transformations",
          "blockers"
        ],
        "additionalProperties": false
      },
      "HubSpotReviewInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "settings": {
            "type": "object",
            "properties": {
              "company_name": {
                "type": "string",
                "maxLength": 500
              },
              "company_street_address_1": {
                "type": "string",
                "maxLength": 200
              },
              "company_street_address_2": {
                "type": "string",
                "maxLength": 200
              },
              "company_city": {
                "type": "string",
                "maxLength": 200
              },
              "company_state": {
                "type": "string",
                "maxLength": 200
              },
              "company_zip": {
                "type": "string",
                "maxLength": 50
              },
              "company_country": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "company_name",
              "company_street_address_1",
              "company_street_address_2",
              "company_city",
              "company_state",
              "company_zip",
              "company_country"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "settings"
        ],
        "additionalProperties": false
      },
      "HubSpotArtifactInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "settings": {
            "type": "object",
            "properties": {
              "company_name": {
                "type": "string",
                "maxLength": 500
              },
              "company_street_address_1": {
                "type": "string",
                "maxLength": 200
              },
              "company_street_address_2": {
                "type": "string",
                "maxLength": 200
              },
              "company_city": {
                "type": "string",
                "maxLength": 200
              },
              "company_state": {
                "type": "string",
                "maxLength": 200
              },
              "company_zip": {
                "type": "string",
                "maxLength": 50
              },
              "company_country": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "company_name",
              "company_street_address_1",
              "company_street_address_2",
              "company_city",
              "company_state",
              "company_zip",
              "company_country"
            ],
            "additionalProperties": false
          },
          "format": {
            "type": "string",
            "enum": [
              "html",
              "txt"
            ]
          },
          "expected_destination_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "settings",
          "format",
          "expected_destination_hash"
        ],
        "additionalProperties": false
      },
      "HubSpotMappingVersion": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "string",
        "const": "hubspot-coded-footer-1"
      },
      "HubSpotComparisonVersion": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "string",
        "const": "hubspot-footer-comparison-1"
      },
      "HubSpotReviewResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "review": {
            "type": "object",
            "properties": {
              "destination": {
                "type": "string",
                "const": "hubspot"
              },
              "mapping_version": {
                "type": "string",
                "const": "hubspot-coded-footer-1"
              },
              "comparison_version": {
                "type": "string",
                "const": "hubspot-footer-comparison-1"
              },
              "revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "source_artifact_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "destination_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "html_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "text_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "settings_digest": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "settings_origin": {
                "type": "string",
                "const": "locally_declared"
              },
              "remote_export_enabled": {
                "type": "boolean",
                "const": false
              },
              "account_settings_verified": {
                "type": "boolean",
                "const": false
              },
              "native_conformance_verified": {
                "type": "boolean",
                "const": false
              },
              "management_link_verified": {
                "type": "boolean",
                "const": false
              },
              "transformations": {
                "minItems": 1,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "blockers": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "string",
                    "const": "CONNECTION_AUTH_MODE_UNAPPROVED"
                  },
                  {
                    "type": "string",
                    "const": "HUBSPOT_ACCOUNT_SETTINGS_UNVERIFIED"
                  },
                  {
                    "type": "string",
                    "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
                  },
                  {
                    "type": "string",
                    "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
                  },
                  {
                    "type": "string",
                    "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
                  },
                  {
                    "type": "string",
                    "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
                  },
                  {
                    "type": "string",
                    "const": "MANAGEMENT_LINK_UNVERIFIED"
                  }
                ],
                "items": false,
                "minItems": 7,
                "maxItems": 7
              }
            },
            "required": [
              "destination",
              "mapping_version",
              "comparison_version",
              "revision_id",
              "source_artifact_hash",
              "destination_hash",
              "html_sha256",
              "text_sha256",
              "settings_digest",
              "settings_origin",
              "remote_export_enabled",
              "account_settings_verified",
              "native_conformance_verified",
              "management_link_verified",
              "transformations",
              "blockers"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "review"
        ],
        "additionalProperties": false
      },
      "KlaviyoReview": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination": {
            "type": "string",
            "const": "klaviyo"
          },
          "mapping_version": {
            "type": "string",
            "const": "klaviyo-html-1"
          },
          "api_revision": {
            "type": "string",
            "const": "2026-07-15"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_artifact_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "destination_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "html_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "text_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "remote_export_enabled": {
            "type": "boolean",
            "const": false
          },
          "transformations": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "blockers": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string",
                "const": "OAUTH_CONNECTION_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
              }
            ],
            "items": false,
            "minItems": 5,
            "maxItems": 5
          }
        },
        "required": [
          "destination",
          "mapping_version",
          "api_revision",
          "revision_id",
          "source_artifact_hash",
          "destination_hash",
          "html_sha256",
          "text_sha256",
          "remote_export_enabled",
          "transformations",
          "blockers"
        ],
        "additionalProperties": false
      },
      "MailchimpReview": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination": {
            "type": "string",
            "const": "mailchimp"
          },
          "mapping_version": {
            "type": "string",
            "const": "mailchimp-classic-html-1"
          },
          "api_revision": {
            "type": "string",
            "const": "3.0.91"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_artifact_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "destination_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "html_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "text_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "remote_export_enabled": {
            "type": "boolean",
            "const": false
          },
          "transformations": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "blockers": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string",
                "const": "OAUTH_CONNECTION_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "STANDARD_OR_HIGHER_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "TEMPLATE_HTML_READBACK_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "MANAGEMENT_LINK_UNVERIFIED"
              }
            ],
            "items": false,
            "minItems": 7,
            "maxItems": 7
          }
        },
        "required": [
          "destination",
          "mapping_version",
          "api_revision",
          "revision_id",
          "source_artifact_hash",
          "destination_hash",
          "html_sha256",
          "text_sha256",
          "remote_export_enabled",
          "transformations",
          "blockers"
        ],
        "additionalProperties": false
      },
      "OmnisendReview": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination": {
            "type": "string",
            "const": "omnisend"
          },
          "mapping_version": {
            "type": "string",
            "const": "omnisend-html-import-1"
          },
          "api_revision": {
            "type": "string",
            "const": "2026-03-15"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_artifact_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "destination_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "html_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "text_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "remote_export_enabled": {
            "type": "boolean",
            "const": false
          },
          "transformations": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "blockers": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string",
                "const": "OAUTH_CONNECTION_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "IMPORT_FIDELITY_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "MANAGEMENT_LINK_UNVERIFIED"
              }
            ],
            "items": false,
            "minItems": 7,
            "maxItems": 7
          }
        },
        "required": [
          "destination",
          "mapping_version",
          "api_revision",
          "revision_id",
          "source_artifact_hash",
          "destination_hash",
          "html_sha256",
          "text_sha256",
          "remote_export_enabled",
          "transformations",
          "blockers"
        ],
        "additionalProperties": false
      },
      "BrevoReview": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination": {
            "type": "string",
            "const": "brevo"
          },
          "mapping_version": {
            "type": "string",
            "const": "brevo-campaign-html-1"
          },
          "api_revision": {
            "type": "string",
            "const": "v3"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_artifact_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "destination_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "html_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "text_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "remote_export_enabled": {
            "type": "boolean",
            "const": false
          },
          "transformations": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "blockers": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string",
                "const": "CONNECTION_AUTH_MODE_UNAPPROVED"
              },
              {
                "type": "string",
                "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "SENDER_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
              },
              {
                "type": "string",
                "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "MANAGEMENT_LINK_UNVERIFIED"
              }
            ],
            "items": false,
            "minItems": 7,
            "maxItems": 7
          }
        },
        "required": [
          "destination",
          "mapping_version",
          "api_revision",
          "revision_id",
          "source_artifact_hash",
          "destination_hash",
          "html_sha256",
          "text_sha256",
          "remote_export_enabled",
          "transformations",
          "blockers"
        ],
        "additionalProperties": false
      },
      "DestinationReviewResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "review": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "const": "klaviyo"
                  },
                  "mapping_version": {
                    "type": "string",
                    "const": "klaviyo-html-1"
                  },
                  "api_revision": {
                    "type": "string",
                    "const": "2026-07-15"
                  },
                  "revision_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "source_artifact_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "destination_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "html_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "text_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "remote_export_enabled": {
                    "type": "boolean",
                    "const": false
                  },
                  "transformations": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "blockers": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "string",
                        "const": "OAUTH_CONNECTION_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
                      }
                    ],
                    "items": false,
                    "minItems": 5,
                    "maxItems": 5
                  }
                },
                "required": [
                  "destination",
                  "mapping_version",
                  "api_revision",
                  "revision_id",
                  "source_artifact_hash",
                  "destination_hash",
                  "html_sha256",
                  "text_sha256",
                  "remote_export_enabled",
                  "transformations",
                  "blockers"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "const": "mailchimp"
                  },
                  "mapping_version": {
                    "type": "string",
                    "const": "mailchimp-classic-html-1"
                  },
                  "api_revision": {
                    "type": "string",
                    "const": "3.0.91"
                  },
                  "revision_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "source_artifact_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "destination_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "html_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "text_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "remote_export_enabled": {
                    "type": "boolean",
                    "const": false
                  },
                  "transformations": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "blockers": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "string",
                        "const": "OAUTH_CONNECTION_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "STANDARD_OR_HIGHER_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "TEMPLATE_HTML_READBACK_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "MANAGEMENT_LINK_UNVERIFIED"
                      }
                    ],
                    "items": false,
                    "minItems": 7,
                    "maxItems": 7
                  }
                },
                "required": [
                  "destination",
                  "mapping_version",
                  "api_revision",
                  "revision_id",
                  "source_artifact_hash",
                  "destination_hash",
                  "html_sha256",
                  "text_sha256",
                  "remote_export_enabled",
                  "transformations",
                  "blockers"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "const": "omnisend"
                  },
                  "mapping_version": {
                    "type": "string",
                    "const": "omnisend-html-import-1"
                  },
                  "api_revision": {
                    "type": "string",
                    "const": "2026-03-15"
                  },
                  "revision_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "source_artifact_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "destination_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "html_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "text_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "remote_export_enabled": {
                    "type": "boolean",
                    "const": false
                  },
                  "transformations": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "blockers": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "string",
                        "const": "OAUTH_CONNECTION_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "IMPORT_FIDELITY_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "MANAGEMENT_LINK_UNVERIFIED"
                      }
                    ],
                    "items": false,
                    "minItems": 7,
                    "maxItems": 7
                  }
                },
                "required": [
                  "destination",
                  "mapping_version",
                  "api_revision",
                  "revision_id",
                  "source_artifact_hash",
                  "destination_hash",
                  "html_sha256",
                  "text_sha256",
                  "remote_export_enabled",
                  "transformations",
                  "blockers"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "destination": {
                    "type": "string",
                    "const": "brevo"
                  },
                  "mapping_version": {
                    "type": "string",
                    "const": "brevo-campaign-html-1"
                  },
                  "api_revision": {
                    "type": "string",
                    "const": "v3"
                  },
                  "revision_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "source_artifact_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "destination_hash": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "html_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "text_sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "remote_export_enabled": {
                    "type": "boolean",
                    "const": false
                  },
                  "transformations": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "blockers": {
                    "type": "array",
                    "prefixItems": [
                      {
                        "type": "string",
                        "const": "CONNECTION_AUTH_MODE_UNAPPROVED"
                      },
                      {
                        "type": "string",
                        "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "SENDER_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
                      },
                      {
                        "type": "string",
                        "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
                      },
                      {
                        "type": "string",
                        "const": "MANAGEMENT_LINK_UNVERIFIED"
                      }
                    ],
                    "items": false,
                    "minItems": 7,
                    "maxItems": 7
                  }
                },
                "required": [
                  "destination",
                  "mapping_version",
                  "api_revision",
                  "revision_id",
                  "source_artifact_hash",
                  "destination_hash",
                  "html_sha256",
                  "text_sha256",
                  "remote_export_enabled",
                  "transformations",
                  "blockers"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "request_id",
          "review"
        ],
        "additionalProperties": false
      },
      "KlaviyoReviewResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "review": {
            "type": "object",
            "properties": {
              "destination": {
                "type": "string",
                "const": "klaviyo"
              },
              "mapping_version": {
                "type": "string",
                "const": "klaviyo-html-1"
              },
              "api_revision": {
                "type": "string",
                "const": "2026-07-15"
              },
              "revision_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "source_artifact_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "destination_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "html_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "text_sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "remote_export_enabled": {
                "type": "boolean",
                "const": false
              },
              "transformations": {
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "blockers": {
                "type": "array",
                "prefixItems": [
                  {
                    "type": "string",
                    "const": "OAUTH_CONNECTION_UNAVAILABLE"
                  },
                  {
                    "type": "string",
                    "const": "ACCOUNT_ENTITLEMENT_UNVERIFIED"
                  },
                  {
                    "type": "string",
                    "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
                  },
                  {
                    "type": "string",
                    "const": "DESTINATION_CONFORMANCE_UNVERIFIED"
                  },
                  {
                    "type": "string",
                    "const": "DURABLE_REMOTE_EXPORT_UNAVAILABLE"
                  }
                ],
                "items": false,
                "minItems": 5,
                "maxItems": 5
              }
            },
            "required": [
              "destination",
              "mapping_version",
              "api_revision",
              "revision_id",
              "source_artifact_hash",
              "destination_hash",
              "html_sha256",
              "text_sha256",
              "remote_export_enabled",
              "transformations",
              "blockers"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "review"
        ],
        "additionalProperties": false
      },
      "DestinationPushInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "destination": {
                "type": "string",
                "const": "klaviyo"
              },
              "credential": {
                "type": "string",
                "minLength": 8,
                "maxLength": 4096,
                "pattern": "^[A-Za-z0-9._~+/-]+$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "acknowledge_possible_duplicate": {
                "type": "boolean"
              }
            },
            "required": [
              "destination",
              "credential"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "destination": {
                "type": "string",
                "const": "mailchimp"
              },
              "credential": {
                "type": "string",
                "pattern": "^[A-Za-z0-9]{16,64}-(us[1-9][0-9]{0,2})$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "acknowledge_possible_duplicate": {
                "type": "boolean"
              }
            },
            "required": [
              "destination",
              "credential"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "destination": {
                "type": "string",
                "const": "omnisend"
              },
              "credential": {
                "type": "string",
                "minLength": 8,
                "maxLength": 4096,
                "pattern": "^[A-Za-z0-9._~+/-]+$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "acknowledge_possible_duplicate": {
                "type": "boolean"
              }
            },
            "required": [
              "destination",
              "credential"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "destination": {
                "type": "string",
                "const": "brevo"
              },
              "credential": {
                "type": "string",
                "minLength": 8,
                "maxLength": 4096,
                "pattern": "^[A-Za-z0-9._~+/-]+$"
              },
              "sender_email": {
                "type": "string",
                "minLength": 3,
                "maxLength": 254,
                "pattern": "^[^\\s@]+@[^\\s@]+$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "acknowledge_possible_duplicate": {
                "type": "boolean"
              }
            },
            "required": [
              "destination",
              "credential",
              "sender_email"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "destination": {
                "type": "string",
                "const": "hubspot"
              },
              "credential": {
                "type": "string",
                "minLength": 8,
                "maxLength": 4096,
                "pattern": "^[A-Za-z0-9._~+/-]+$"
              },
              "settings": {
                "type": "object",
                "properties": {
                  "company_name": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "company_street_address_1": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "company_street_address_2": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "company_city": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "company_state": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "company_zip": {
                    "type": "string",
                    "maxLength": 50
                  },
                  "company_country": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "company_name",
                  "company_street_address_1",
                  "company_street_address_2",
                  "company_city",
                  "company_state",
                  "company_zip",
                  "company_country"
                ],
                "additionalProperties": false
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "acknowledge_possible_duplicate": {
                "type": "boolean"
              }
            },
            "required": [
              "destination",
              "credential",
              "settings"
            ],
            "additionalProperties": false
          }
        ],
        "description": "One-request ESP credential and destination extras. The credential is used for this request only and is never stored, logged, audited or echoed. Mailchimp keys must end in their data center suffix (for example -us21); only that validated suffix selects the API host. Brevo requires a verified sender email; HubSpot requires the seven footer settings."
      },
      "DestinationPushResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "destination": {
            "type": "string",
            "enum": [
              "klaviyo",
              "mailchimp",
              "omnisend",
              "brevo",
              "hubspot"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "created",
              "created_unverified",
              "rejected",
              "outcome_unknown"
            ]
          },
          "code": {
            "type": "string",
            "pattern": "^[A-Z_]{1,80}$"
          },
          "message": {
            "type": "string",
            "maxLength": 600
          },
          "name": {
            "type": "string",
            "maxLength": 200
          },
          "remote_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "open_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "app_url": {
            "type": "string",
            "format": "uri"
          },
          "location_hint": {
            "type": "string",
            "maxLength": 300
          },
          "retry_after": {
            "type": "integer",
            "minimum": 0,
            "maximum": 86400
          }
        },
        "required": [
          "request_id",
          "destination",
          "state",
          "code",
          "message",
          "name",
          "remote_id",
          "open_url",
          "app_url",
          "location_hint"
        ],
        "additionalProperties": false,
        "description": "created: the template or Brevo draft exists in the ESP. created_unverified: it exists but could not be read back. rejected: the ESP refused it and nothing was created. outcome_unknown: check the ESP before retrying. open_url is null unless a documented deep link exists; app_url opens the ESP web app."
      },
      "ShopifyProductsInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "store_url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "page": {
            "default": 1,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "store_url"
        ],
        "additionalProperties": false,
        "description": "A Shopify store address (custom domain or *.myshopify.com) and a 1-based page. No Shopify credential is accepted."
      },
      "ShopifyProductsResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "store": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 200
              },
              "origin": {
                "type": "string",
                "maxLength": 2048
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$"
              }
            },
            "required": [
              "name",
              "origin",
              "currency"
            ],
            "additionalProperties": false
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "products": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^\\d{1,20}$"
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                },
                "description": {
                  "type": "string",
                  "maxLength": 300
                },
                "price": {
                  "type": "string",
                  "maxLength": 100
                },
                "available": {
                  "type": "boolean"
                },
                "image_url": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2048
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "href": {
                  "type": "string",
                  "maxLength": 2048
                }
              },
              "required": [
                "id",
                "title",
                "description",
                "price",
                "available",
                "image_url",
                "href"
              ],
              "additionalProperties": false
            }
          },
          "skipped": {
            "type": "integer",
            "minimum": 0,
            "maximum": 50
          },
          "has_more": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "store",
          "page",
          "products",
          "skipped",
          "has_more"
        ],
        "additionalProperties": false,
        "description": "One page of up to 50 products from the store's public storefront, ready for product_card blocks. price is rupee display copy (lowest variant, prefixed From when variants differ) or blank; image_url is the first product image over HTTPS or null."
      },
      "SpeechTokenResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "expires_in": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "socket_url": {
            "type": "string",
            "const": "wss://api.cartesia.ai/stt/websocket"
          },
          "model": {
            "type": "string",
            "const": "ink-2"
          },
          "cartesia_version": {
            "type": "string",
            "const": "2026-08-14"
          },
          "max_seconds": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "request_id",
          "token",
          "expires_in",
          "socket_url",
          "model",
          "cartesia_version",
          "max_seconds"
        ],
        "additionalProperties": false,
        "description": "A Cartesia speech-to-text access token valid for 60 seconds, and the socket settings to open it with. Open socket_url with model, encoding=pcm_s16le, sample_rate, cartesia_version and access_token=token. Stop each spoken brief within max_seconds (180)."
      },
      "EmailSourceSpec": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "enum": [
              "1.0",
              "1.1",
              "1.2",
              "1.3",
              "1.4"
            ]
          },
          "editing_mode": {
            "type": "string",
            "enum": [
              "structured",
              "raw_html"
            ]
          },
          "locale": {
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "ltr",
              "rtl"
            ]
          },
          "subject": {
            "type": "string",
            "maxLength": 200
          },
          "preheader": {
            "type": "string",
            "maxLength": 250
          },
          "brand_kit_version_id": {
            "type": "string",
            "maxLength": 80
          },
          "theme": {
            "type": "object",
            "properties": {
              "content_width_px": {
                "type": "integer",
                "minimum": 320,
                "maximum": 800
              },
              "background": {
                "type": "string",
                "pattern": "^#[\\da-fA-F]{6}$"
              },
              "accent": {
                "type": "string",
                "pattern": "^#[\\da-fA-F]{6}$"
              },
              "font_stack": {
                "type": "string",
                "enum": [
                  "Arial, sans-serif",
                  "Georgia, serif",
                  "Verdana, sans-serif"
                ]
              }
            },
            "required": [
              "content_width_px",
              "background",
              "accent",
              "font_stack"
            ],
            "additionalProperties": false
          },
          "sections": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "hero"
                        },
                        "heading": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 10000
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "heading",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "text"
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "inline": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "marks": {
                                    "maxItems": 2,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "bold",
                                        "italic"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "text",
                                  "marks"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "link"
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 10000
                                  },
                                  "href": {
                                    "type": "string",
                                    "maxLength": 2048
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "label",
                                  "href"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "break"
                                  }
                                },
                                "required": [
                                  "id",
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "field"
                                  },
                                  "key": {
                                    "type": "string",
                                    "const": "first_name"
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 1000
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "key",
                                  "fallback"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "isolate"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "direction": {
                                    "type": "string",
                                    "enum": [
                                      "ltr",
                                      "rtl"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "text",
                                  "direction"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "image"
                        },
                        "src": {
                          "type": "string",
                          "maxLength": 2048
                        },
                        "asset_ref": {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "variant_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "required": [
                            "asset_id",
                            "variant_id"
                          ],
                          "additionalProperties": false
                        },
                        "fallback_ref": {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "variant_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "required": [
                            "asset_id",
                            "variant_id"
                          ],
                          "additionalProperties": false
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "decorative": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "alt"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "button"
                        },
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "href": {
                          "type": "string",
                          "maxLength": 2048
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "label",
                        "href"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "divider"
                        }
                      },
                      "required": [
                        "id",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "social"
                        },
                        "links": {
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "maxLength": 80
                              },
                              "href": {
                                "type": "string",
                                "maxLength": 2048
                              }
                            },
                            "required": [
                              "label",
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "links"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "legal_footer"
                        },
                        "identity": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "address": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "unsubscribe_slot": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "identity",
                        "address",
                        "unsubscribe_slot"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "product_card"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "price": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "string",
                              "const": "explicit-money-1"
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "format_locale": {
                              "type": "string",
                              "enum": [
                                "en-US",
                                "en-GB",
                                "fr-FR",
                                "de-DE",
                                "es-ES",
                                "it-IT",
                                "pt-BR",
                                "nl-NL",
                                "sv-SE",
                                "da-DK",
                                "no-NO",
                                "fi-FI",
                                "pl-PL",
                                "cs-CZ",
                                "tr-TR",
                                "ja-JP",
                                "ko-KR",
                                "zh-CN",
                                "zh-TW",
                                "hi-IN",
                                "ar-SA",
                                "he-IL"
                              ]
                            },
                            "numbering_system": {
                              "type": "string",
                              "enum": [
                                "locale",
                                "latn"
                              ]
                            },
                            "display": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          },
                          "required": [
                            "version",
                            "amount",
                            "currency",
                            "format_locale",
                            "numbering_system",
                            "display"
                          ],
                          "additionalProperties": false
                        },
                        "href": {
                          "type": "string",
                          "maxLength": 2048
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "title",
                        "description",
                        "price",
                        "href"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "custom_html"
                        },
                        "html": {
                          "type": "string",
                          "maxLength": 200000
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "html"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "type": {
                      "type": "string",
                      "const": "columns"
                    },
                    "columns": {
                      "minItems": 1,
                      "maxItems": 2,
                      "type": "array",
                      "items": {
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "hero"
                                },
                                "heading": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "text": {
                                  "type": "string",
                                  "maxLength": 10000
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "heading",
                                "text"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "text"
                                },
                                "text": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "inline": {
                                  "minItems": 1,
                                  "maxItems": 64,
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "text"
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "marks": {
                                            "maxItems": 2,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "text",
                                          "marks"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "link"
                                          },
                                          "label": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 10000
                                          },
                                          "href": {
                                            "type": "string",
                                            "maxLength": 2048
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "label",
                                          "href"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "break"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "field"
                                          },
                                          "key": {
                                            "type": "string",
                                            "const": "first_name"
                                          },
                                          "fallback": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 1000
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "key",
                                          "fallback"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "isolate"
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "direction": {
                                            "type": "string",
                                            "enum": [
                                              "ltr",
                                              "rtl"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "text",
                                          "direction"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "text"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "image"
                                },
                                "src": {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                "asset_ref": {
                                  "type": "object",
                                  "properties": {
                                    "asset_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "variant_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    }
                                  },
                                  "required": [
                                    "asset_id",
                                    "variant_id"
                                  ],
                                  "additionalProperties": false
                                },
                                "fallback_ref": {
                                  "type": "object",
                                  "properties": {
                                    "asset_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "variant_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    }
                                  },
                                  "required": [
                                    "asset_id",
                                    "variant_id"
                                  ],
                                  "additionalProperties": false
                                },
                                "alt": {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                "decorative": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "alt"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "button"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "href": {
                                  "type": "string",
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "label",
                                "href"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "divider"
                                }
                              },
                              "required": [
                                "id",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "social"
                                },
                                "links": {
                                  "maxItems": 10,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "label": {
                                        "type": "string",
                                        "maxLength": 80
                                      },
                                      "href": {
                                        "type": "string",
                                        "maxLength": 2048
                                      }
                                    },
                                    "required": [
                                      "label",
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "links"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "legal_footer"
                                },
                                "identity": {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                "address": {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                "unsubscribe_slot": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "identity",
                                "address",
                                "unsubscribe_slot"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "product_card"
                                },
                                "title": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "price": {
                                  "type": "string",
                                  "maxLength": 100
                                },
                                "money": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "string",
                                      "const": "explicit-money-1"
                                    },
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                                    },
                                    "currency": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    "format_locale": {
                                      "type": "string",
                                      "enum": [
                                        "en-US",
                                        "en-GB",
                                        "fr-FR",
                                        "de-DE",
                                        "es-ES",
                                        "it-IT",
                                        "pt-BR",
                                        "nl-NL",
                                        "sv-SE",
                                        "da-DK",
                                        "no-NO",
                                        "fi-FI",
                                        "pl-PL",
                                        "cs-CZ",
                                        "tr-TR",
                                        "ja-JP",
                                        "ko-KR",
                                        "zh-CN",
                                        "zh-TW",
                                        "hi-IN",
                                        "ar-SA",
                                        "he-IL"
                                      ]
                                    },
                                    "numbering_system": {
                                      "type": "string",
                                      "enum": [
                                        "locale",
                                        "latn"
                                      ]
                                    },
                                    "display": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "amount",
                                    "currency",
                                    "format_locale",
                                    "numbering_system",
                                    "display"
                                  ],
                                  "additionalProperties": false
                                },
                                "href": {
                                  "type": "string",
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "title",
                                "description",
                                "price",
                                "href"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom_html"
                                },
                                "html": {
                                  "type": "string",
                                  "maxLength": 200000
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "html"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "columns"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "raw_html": {
            "type": "string",
            "maxLength": 2097152
          },
          "tracking": {
            "type": "object",
            "properties": {
              "utm_source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "utm_medium": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "utm_campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "required": [
              "utm_source",
              "utm_medium",
              "utm_campaign"
            ],
            "additionalProperties": false
          },
          "asset_registry": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "asset_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "variant_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                }
              },
              "required": [
                "asset_id",
                "variant_id"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "schema_version",
          "editing_mode",
          "locale",
          "direction",
          "subject",
          "preheader",
          "brand_kit_version_id",
          "theme",
          "sections"
        ],
        "additionalProperties": false
      },
      "SourceProfile": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "string",
        "enum": [
          "legacy-stored-1",
          "exact-utf8-1"
        ]
      },
      "SaveReceipt": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "receipt_version": {
            "type": "number",
            "const": 1
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "request_base_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "saved_doc_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "command_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "spec_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "source": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "profile": {
                    "type": "string",
                    "enum": [
                      "legacy-stored-1",
                      "exact-utf8-1"
                    ]
                  },
                  "sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "bytes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2097152
                  }
                },
                "required": [
                  "profile",
                  "sha256",
                  "bytes"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "receipt_version",
          "workspace_id",
          "email_id",
          "request_base_version",
          "saved_doc_version",
          "command_id",
          "spec_hash",
          "source"
        ],
        "additionalProperties": false,
        "description": "Durable CAS receipt; saved_doc_version equals request_base_version+1. Hashes identify the actual committed spec and exact UTF-8 source. A receipt does not grant authority or certify render eligibility."
      },
      "SavedEmailResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "title": {
                "type": "string",
                "maxLength": 200
              },
              "doc_version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "spec": {
                "$ref": "#/components/schemas/EmailSourceSpec"
              },
              "updated_at": {
                "type": "string"
              },
              "lineage": {},
              "raw_source_profile": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "legacy-stored-1",
                      "exact-utf8-1"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "title",
              "doc_version",
              "spec"
            ],
            "additionalProperties": false
          },
          "receipt": {
            "$ref": "#/components/schemas/SaveReceipt"
          }
        },
        "required": [
          "request_id",
          "email",
          "receipt"
        ],
        "additionalProperties": false,
        "description": "Exact committed email and strict durable receipt. Server enforces matching email/version, CAS increment, canonical spec hash and exact source hash; these cross-field/digest checks exceed JSON Schema shape validation."
      },
      "SourceForkInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_artifact_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "expected_artifact_hash"
        ],
        "additionalProperties": false
      },
      "AssetUploadInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "declared_mime": {
            "type": "string",
            "enum": [
              "image/png",
              "image/jpeg",
              "image/gif"
            ]
          },
          "byte_size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20971520
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "rights": {
            "type": "object",
            "properties": {
              "attested": {
                "type": "boolean",
                "const": true
              },
              "terms_version": {
                "type": "string",
                "const": "local-upload-attestation-v1"
              }
            },
            "required": [
              "attested",
              "terms_version"
            ],
            "additionalProperties": false
          },
          "alt": {
            "default": "",
            "type": "string",
            "maxLength": 1000
          },
          "decorative": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": [
          "filename",
          "declared_mime",
          "byte_size",
          "sha256",
          "rights"
        ],
        "additionalProperties": false
      },
      "AssetFallbackInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "selected_frame": {
            "type": "integer",
            "minimum": 0,
            "maximum": 199
          }
        },
        "required": [
          "selected_frame"
        ],
        "additionalProperties": false
      },
      "AssetMetadata": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "state": {
            "type": "string",
            "enum": [
              "quarantined",
              "processing",
              "ready_private",
              "published",
              "deleting",
              "deleted"
            ]
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "mime": {
            "type": [
              "string",
              "null"
            ]
          },
          "bytes": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "source_sha256": {
            "type": [
              "string",
              "null"
            ]
          },
          "alt": {
            "type": "string",
            "maxLength": 1000
          },
          "decorative": {
            "type": "boolean"
          },
          "failure_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "asset_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "variant_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "source_sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "mime": {
                  "type": "string",
                  "enum": [
                    "image/png",
                    "image/jpeg",
                    "image/gif"
                  ]
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 20971520
                },
                "width": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 8192
                },
                "height": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 8192
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "static",
                    "animation",
                    "fallback"
                  ]
                },
                "frames": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 200
                },
                "fallback": {
                  "type": "object",
                  "properties": {
                    "asset_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "variant_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "asset_id",
                    "variant_id"
                  ],
                  "additionalProperties": false
                },
                "selected_frame": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 199
                },
                "processing_profile": {
                  "type": "string",
                  "maxLength": 200
                },
                "storage_profile": {
                  "type": "string",
                  "maxLength": 200
                },
                "visibility": {
                  "type": "string",
                  "enum": [
                    "private",
                    "public"
                  ]
                },
                "public_url": {
                  "type": "string",
                  "format": "uri"
                },
                "rights_evidence_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "scan_evidence_ids": {
                  "minItems": 2,
                  "maxItems": 3,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                }
              },
              "required": [
                "asset_id",
                "variant_id",
                "source_sha256",
                "sha256",
                "mime",
                "bytes",
                "width",
                "height",
                "role",
                "frames",
                "processing_profile",
                "storage_profile",
                "visibility",
                "rights_evidence_id",
                "scan_evidence_ids"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "state",
          "version",
          "mime",
          "bytes",
          "source_sha256",
          "alt",
          "decorative",
          "failure_code",
          "variants"
        ],
        "additionalProperties": false
      },
      "AssetUploadResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "upload": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "token": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              }
            },
            "required": [
              "id",
              "token",
              "expires_at"
            ],
            "additionalProperties": false
          },
          "operation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "state": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "state"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "upload",
          "operation",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AssetUploadContentResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "upload": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "status": {
                "type": "string",
                "const": "finalized"
              }
            },
            "required": [
              "id",
              "status"
            ],
            "additionalProperties": false
          },
          "operation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "state": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "state"
            ],
            "additionalProperties": false
          },
          "asset_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "upload",
          "operation",
          "asset_id",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AssetFallbackResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "operation": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "state": {
                "type": "string",
                "const": "queued"
              }
            },
            "required": [
              "id",
              "state"
            ],
            "additionalProperties": false
          },
          "asset": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "state": {
                "type": "string",
                "enum": [
                  "quarantined",
                  "processing",
                  "ready_private",
                  "published",
                  "deleting",
                  "deleted"
                ]
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "mime": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "alt": {
                "type": "string",
                "maxLength": 1000
              },
              "decorative": {
                "type": "boolean"
              },
              "failure_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "variants": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "asset_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "variant_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "source_sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "mime": {
                      "type": "string",
                      "enum": [
                        "image/png",
                        "image/jpeg",
                        "image/gif"
                      ]
                    },
                    "bytes": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 20971520
                    },
                    "width": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8192
                    },
                    "height": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8192
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "static",
                        "animation",
                        "fallback"
                      ]
                    },
                    "frames": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 200
                    },
                    "fallback": {
                      "type": "object",
                      "properties": {
                        "asset_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "variant_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "required": [
                        "asset_id",
                        "variant_id"
                      ],
                      "additionalProperties": false
                    },
                    "selected_frame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 199
                    },
                    "processing_profile": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "storage_profile": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "private",
                        "public"
                      ]
                    },
                    "public_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "rights_evidence_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "scan_evidence_ids": {
                      "minItems": 2,
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    }
                  },
                  "required": [
                    "asset_id",
                    "variant_id",
                    "source_sha256",
                    "sha256",
                    "mime",
                    "bytes",
                    "width",
                    "height",
                    "role",
                    "frames",
                    "processing_profile",
                    "storage_profile",
                    "visibility",
                    "rights_evidence_id",
                    "scan_evidence_ids"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "state",
              "version",
              "mime",
              "bytes",
              "source_sha256",
              "alt",
              "decorative",
              "failure_code",
              "variants"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "operation",
          "asset",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AssetResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "asset": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "state": {
                "type": "string",
                "enum": [
                  "quarantined",
                  "processing",
                  "ready_private",
                  "published",
                  "deleting",
                  "deleted"
                ]
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "mime": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_sha256": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "alt": {
                "type": "string",
                "maxLength": 1000
              },
              "decorative": {
                "type": "boolean"
              },
              "failure_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "variants": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "asset_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "variant_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "source_sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "mime": {
                      "type": "string",
                      "enum": [
                        "image/png",
                        "image/jpeg",
                        "image/gif"
                      ]
                    },
                    "bytes": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 20971520
                    },
                    "width": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8192
                    },
                    "height": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8192
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "static",
                        "animation",
                        "fallback"
                      ]
                    },
                    "frames": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 200
                    },
                    "fallback": {
                      "type": "object",
                      "properties": {
                        "asset_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "variant_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "required": [
                        "asset_id",
                        "variant_id"
                      ],
                      "additionalProperties": false
                    },
                    "selected_frame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 199
                    },
                    "processing_profile": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "storage_profile": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "private",
                        "public"
                      ]
                    },
                    "public_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "rights_evidence_id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "scan_evidence_ids": {
                      "minItems": 2,
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    }
                  },
                  "required": [
                    "asset_id",
                    "variant_id",
                    "source_sha256",
                    "sha256",
                    "mime",
                    "bytes",
                    "width",
                    "height",
                    "role",
                    "frames",
                    "processing_profile",
                    "storage_profile",
                    "visibility",
                    "rights_evidence_id",
                    "scan_evidence_ids"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "state",
              "version",
              "mime",
              "bytes",
              "source_sha256",
              "alt",
              "decorative",
              "failure_code",
              "variants"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "asset"
        ],
        "additionalProperties": false
      },
      "AssetsPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "quarantined",
                    "processing",
                    "ready_private",
                    "published",
                    "deleting",
                    "deleted"
                  ]
                },
                "version": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "mime": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "bytes": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "source_sha256": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "alt": {
                  "type": "string",
                  "maxLength": 1000
                },
                "decorative": {
                  "type": "boolean"
                },
                "failure_code": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "variants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "asset_id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "variant_id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "source_sha256": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "sha256": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "mime": {
                        "type": "string",
                        "enum": [
                          "image/png",
                          "image/jpeg",
                          "image/gif"
                        ]
                      },
                      "bytes": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 20971520
                      },
                      "width": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 8192
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 8192
                      },
                      "role": {
                        "type": "string",
                        "enum": [
                          "static",
                          "animation",
                          "fallback"
                        ]
                      },
                      "frames": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 200
                      },
                      "fallback": {
                        "type": "object",
                        "properties": {
                          "asset_id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "variant_id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "required": [
                          "asset_id",
                          "variant_id"
                        ],
                        "additionalProperties": false
                      },
                      "selected_frame": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 199
                      },
                      "processing_profile": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "storage_profile": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "visibility": {
                        "type": "string",
                        "enum": [
                          "private",
                          "public"
                        ]
                      },
                      "public_url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "rights_evidence_id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "scan_evidence_ids": {
                        "minItems": 2,
                        "maxItems": 3,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      }
                    },
                    "required": [
                      "asset_id",
                      "variant_id",
                      "source_sha256",
                      "sha256",
                      "mime",
                      "bytes",
                      "width",
                      "height",
                      "role",
                      "frames",
                      "processing_profile",
                      "storage_profile",
                      "visibility",
                      "rights_evidence_id",
                      "scan_evidence_ids"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "state",
                "version",
                "mime",
                "bytes",
                "source_sha256",
                "alt",
                "decorative",
                "failure_code",
                "variants"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "SenderDraftInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "provider": {
            "type": "string",
            "enum": [
              "ses",
              "resend",
              "sendgrid",
              "mailgun"
            ]
          },
          "account_label": {
            "type": "string",
            "maxLength": 100
          },
          "region": {
            "type": "string",
            "maxLength": 40
          },
          "from_name": {
            "type": "string",
            "maxLength": 100
          },
          "from_address": {
            "type": "string",
            "maxLength": 254
          },
          "reply_to": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 254
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "provider",
          "account_label",
          "region",
          "from_name",
          "from_address",
          "reply_to"
        ],
        "additionalProperties": false
      },
      "SenderVersionInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "provider": {
            "type": "string",
            "enum": [
              "ses",
              "resend",
              "sendgrid",
              "mailgun"
            ]
          },
          "account_label": {
            "type": "string",
            "maxLength": 100
          },
          "region": {
            "type": "string",
            "maxLength": 40
          },
          "from_name": {
            "type": "string",
            "maxLength": 100
          },
          "from_address": {
            "type": "string",
            "maxLength": 254
          },
          "reply_to": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 254
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "name",
          "provider",
          "account_label",
          "region",
          "from_name",
          "from_address",
          "reply_to",
          "expected_version"
        ],
        "additionalProperties": false
      },
      "SenderCheckInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "SenderView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "provider": {
            "type": "string",
            "enum": [
              "ses",
              "resend",
              "sendgrid",
              "mailgun"
            ]
          },
          "account_label": {
            "type": "string",
            "maxLength": 100
          },
          "region": {
            "type": "string",
            "maxLength": 40
          },
          "from_name": {
            "type": "string",
            "maxLength": 100
          },
          "from_address": {
            "type": "string",
            "maxLength": 254
          },
          "reply_to": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 254,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "domain": {
            "type": "string",
            "maxLength": 253
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "connection_status": {
            "type": "string",
            "const": "not_connected"
          },
          "sending_enabled": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "name",
          "provider",
          "account_label",
          "region",
          "from_name",
          "from_address",
          "reply_to",
          "domain",
          "id",
          "version",
          "created_at",
          "updated_at",
          "connection_status",
          "sending_enabled"
        ],
        "additionalProperties": false
      },
      "SenderVersionView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "sender_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "snapshot": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 100
              },
              "provider": {
                "type": "string",
                "enum": [
                  "ses",
                  "resend",
                  "sendgrid",
                  "mailgun"
                ]
              },
              "account_label": {
                "type": "string",
                "maxLength": 100
              },
              "region": {
                "type": "string",
                "maxLength": 40
              },
              "from_name": {
                "type": "string",
                "maxLength": 100
              },
              "from_address": {
                "type": "string",
                "maxLength": 254
              },
              "reply_to": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "domain": {
                "type": "string",
                "maxLength": 253
              }
            },
            "required": [
              "name",
              "provider",
              "account_label",
              "region",
              "from_name",
              "from_address",
              "reply_to",
              "domain"
            ],
            "additionalProperties": false
          },
          "created_by": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "sender_id",
          "version",
          "snapshot",
          "created_by",
          "created_at"
        ],
        "additionalProperties": false
      },
      "DNSObservation": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "maxLength": 253
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "scope": {
            "type": "string",
            "const": "exact_domain_txt"
          },
          "spf": {
            "type": "object",
            "properties": {
              "owner": {
                "type": "string",
                "minLength": 1,
                "maxLength": 260
              },
              "records": {
                "maxItems": 40,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 4096
                }
              },
              "status": {
                "type": "string",
                "enum": [
                  "missing",
                  "single_record",
                  "multiple_records",
                  "unavailable"
                ]
              },
              "error": {
                "type": "string",
                "enum": [
                  "not_found",
                  "timeout",
                  "reserved_domain",
                  "response_limit",
                  "resolver_unavailable"
                ]
              }
            },
            "required": [
              "owner",
              "records",
              "status"
            ],
            "additionalProperties": false
          },
          "dmarc": {
            "type": "object",
            "properties": {
              "owner": {
                "type": "string",
                "minLength": 1,
                "maxLength": 260
              },
              "records": {
                "maxItems": 40,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 4096
                }
              },
              "status": {
                "type": "string",
                "enum": [
                  "missing",
                  "single_record",
                  "multiple_records",
                  "unavailable"
                ]
              },
              "error": {
                "type": "string",
                "enum": [
                  "not_found",
                  "timeout",
                  "reserved_domain",
                  "response_limit",
                  "resolver_unavailable"
                ]
              }
            },
            "required": [
              "owner",
              "records",
              "status"
            ],
            "additionalProperties": false
          },
          "provider_verified": {
            "type": "boolean",
            "const": false
          },
          "authentication_verified": {
            "type": "boolean",
            "const": false
          },
          "sending_enabled": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "domain",
          "observed_at",
          "scope",
          "spf",
          "dmarc",
          "provider_verified",
          "authentication_verified",
          "sending_enabled"
        ],
        "additionalProperties": false
      },
      "DNSCheckView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "sender_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "sender_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "observation": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "maxLength": 253
              },
              "observed_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "scope": {
                "type": "string",
                "const": "exact_domain_txt"
              },
              "spf": {
                "type": "object",
                "properties": {
                  "owner": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 260
                  },
                  "records": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 4096
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "missing",
                      "single_record",
                      "multiple_records",
                      "unavailable"
                    ]
                  },
                  "error": {
                    "type": "string",
                    "enum": [
                      "not_found",
                      "timeout",
                      "reserved_domain",
                      "response_limit",
                      "resolver_unavailable"
                    ]
                  }
                },
                "required": [
                  "owner",
                  "records",
                  "status"
                ],
                "additionalProperties": false
              },
              "dmarc": {
                "type": "object",
                "properties": {
                  "owner": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 260
                  },
                  "records": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 4096
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "missing",
                      "single_record",
                      "multiple_records",
                      "unavailable"
                    ]
                  },
                  "error": {
                    "type": "string",
                    "enum": [
                      "not_found",
                      "timeout",
                      "reserved_domain",
                      "response_limit",
                      "resolver_unavailable"
                    ]
                  }
                },
                "required": [
                  "owner",
                  "records",
                  "status"
                ],
                "additionalProperties": false
              },
              "provider_verified": {
                "type": "boolean",
                "const": false
              },
              "authentication_verified": {
                "type": "boolean",
                "const": false
              },
              "sending_enabled": {
                "type": "boolean",
                "const": false
              }
            },
            "required": [
              "domain",
              "observed_at",
              "scope",
              "spf",
              "dmarc",
              "provider_verified",
              "authentication_verified",
              "sending_enabled"
            ],
            "additionalProperties": false
          },
          "created_by": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "sender_id",
          "sender_version",
          "created_at",
          "observation",
          "created_by"
        ],
        "additionalProperties": false
      },
      "AiCredentialInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "openrouter",
              "openai",
              "anthropic"
            ]
          },
          "api_key": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{20,512}$"
          },
          "model": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
          }
        },
        "required": [
          "provider",
          "api_key",
          "model"
        ],
        "additionalProperties": false,
        "description": "Provider, a model from that provider's listed models, and the workspace's own provider API key. The key is checked with one cheap provider request, sealed with AES-256-GCM and never returned."
      },
      "OpenRouterStartInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
          }
        },
        "required": [
          "model"
        ],
        "additionalProperties": false
      },
      "AiConnection": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "provider": {
            "type": "string",
            "enum": [
              "openrouter",
              "openai",
              "anthropic"
            ]
          },
          "model": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
          },
          "source": {
            "type": "string",
            "enum": [
              "oauth",
              "api_key"
            ]
          },
          "key_last4": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{4}$"
          },
          "created_by": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "id",
          "provider",
          "model",
          "source",
          "key_last4",
          "created_by",
          "created_at"
        ],
        "additionalProperties": false
      },
      "AiConnectionState": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "connection": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "openrouter",
                      "openai",
                      "anthropic"
                    ]
                  },
                  "model": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "oauth",
                      "api_key"
                    ]
                  },
                  "key_last4": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{4}$"
                  },
                  "created_by": {
                    "type": "string"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "id",
                  "provider",
                  "model",
                  "source",
                  "key_last4",
                  "created_by",
                  "created_at"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "openrouter",
                    "openai",
                    "anthropic"
                  ]
                },
                "label": {
                  "type": "string"
                },
                "default_model": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
                },
                "models": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "label",
                "default_model",
                "models"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "configured",
          "connection",
          "providers"
        ],
        "additionalProperties": false
      },
      "WorkspacePreferences": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "time_zone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "workspace_id",
          "time_zone",
          "version"
        ],
        "additionalProperties": false
      },
      "WorkspaceTimezoneInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483646
          },
          "time_zone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
          }
        },
        "required": [
          "expected_version",
          "time_zone"
        ],
        "additionalProperties": false
      },
      "CalendarEntry": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "planned_timing": {
            "type": "object",
            "properties": {
              "local_time": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$"
              },
              "time_zone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
              },
              "utc_offset": {
                "type": "string",
                "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
              },
              "utc": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "local_time",
              "time_zone",
              "utc_offset",
              "utc"
            ],
            "additionalProperties": false
          },
          "display": {
            "type": "object",
            "properties": {
              "local_date": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "local_time": {
                "type": "string",
                "pattern": "^\\d{2}:\\d{2}$"
              },
              "utc_offset": {
                "type": "string",
                "pattern": "^[+-]\\d{2}:\\d{2}(?::\\d{2})?$"
              },
              "time_zone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
              }
            },
            "required": [
              "local_date",
              "local_time",
              "utc_offset",
              "time_zone"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "state",
          "version",
          "revision_id",
          "planned_timing",
          "display"
        ],
        "additionalProperties": false
      },
      "CreationMetadata": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "policy_version": {
            "type": "string",
            "const": "creation-1"
          },
          "phase": {
            "type": "string",
            "enum": [
              "pending",
              "leased",
              "started",
              "settled",
              "unknown"
            ]
          },
          "failure_attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 3
          },
          "attempt_limit": {
            "type": "number",
            "const": 3
          },
          "deadline_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "next_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "accounting": {
            "type": "string",
            "enum": [
              "none",
              "reserved",
              "consumed",
              "released",
              "retained"
            ]
          }
        },
        "required": [
          "policy_version",
          "phase",
          "failure_attempts",
          "attempt_limit",
          "deadline_at",
          "next_at",
          "accounting"
        ],
        "additionalProperties": false
      },
      "CreationAttempt": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "operation_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "lease_epoch": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "phase": {
            "type": "string",
            "enum": [
              "claimed",
              "started",
              "settled",
              "recovered"
            ]
          },
          "outcome_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "id",
          "operation_id",
          "lease_epoch",
          "phase",
          "outcome_code",
          "recorded_at"
        ],
        "additionalProperties": false
      },
      "CreationSummary": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "type": {
            "type": "string",
            "enum": [
              "brand.extract",
              "email.generate"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "cancelled",
              "cancel_requested"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "accounting": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "message"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "creation": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "policy_version": {
                    "type": "string",
                    "const": "creation-1"
                  },
                  "phase": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "leased",
                      "started",
                      "settled",
                      "unknown"
                    ]
                  },
                  "failure_attempts": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3
                  },
                  "attempt_limit": {
                    "type": "number",
                    "const": 3
                  },
                  "deadline_at": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "next_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "accounting": {
                    "type": "string",
                    "enum": [
                      "none",
                      "reserved",
                      "consumed",
                      "released",
                      "retained"
                    ]
                  }
                },
                "required": [
                  "policy_version",
                  "phase",
                  "failure_attempts",
                  "attempt_limit",
                  "deadline_at",
                  "next_at",
                  "accounting"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "state",
          "created_at",
          "started_at",
          "completed_at",
          "error",
          "creation"
        ],
        "additionalProperties": false
      },
      "Membership": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "user_id": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "Owner",
              "Admin",
              "Editor",
              "Viewer",
              "Billing"
            ]
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "workspace_id",
          "id",
          "user_id",
          "role",
          "status",
          "version",
          "created_at",
          "revoked_at"
        ],
        "additionalProperties": false
      },
      "MembershipChange": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "member_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "subject_user_id": {
            "type": "string"
          },
          "actor_user_id": {
            "type": "string"
          },
          "command": {
            "type": "string",
            "enum": [
              "role",
              "remove",
              "transfer-owner"
            ]
          },
          "previous_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "next_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "previous_role": {
            "type": "string",
            "enum": [
              "Owner",
              "Admin",
              "Editor",
              "Viewer",
              "Billing"
            ]
          },
          "next_role": {
            "type": "string",
            "enum": [
              "Owner",
              "Admin",
              "Editor",
              "Viewer",
              "Billing"
            ]
          },
          "previous_status": {
            "type": "string"
          },
          "next_status": {
            "type": "string"
          },
          "editing_seats_before": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "editing_seats_after": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "revoked_keys": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "cancelled_operations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "cancel_requested_operations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          }
        },
        "required": [
          "workspace_id",
          "id",
          "member_id",
          "subject_user_id",
          "actor_user_id",
          "command",
          "previous_version",
          "next_version",
          "previous_role",
          "next_role",
          "previous_status",
          "next_status",
          "editing_seats_before",
          "editing_seats_after",
          "revoked_keys",
          "cancelled_operations",
          "cancel_requested_operations",
          "created_at"
        ],
        "additionalProperties": false
      },
      "MembershipSummary": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "actor": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "user_id": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": [
                  "Owner",
                  "Admin",
                  "Editor",
                  "Viewer",
                  "Billing"
                ]
              },
              "status": {
                "type": "string"
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              }
            },
            "required": [
              "id",
              "user_id",
              "role",
              "status",
              "version"
            ],
            "additionalProperties": false
          },
          "editing_seats": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "active_owners": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "purchased_editing_seats": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "capacity_policy_configured": {
            "type": "boolean"
          },
          "billing_reconciled": {
            "type": "boolean"
          },
          "capacity_hold_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "mfa_mode": {
            "type": "string",
            "enum": [
              "local-development",
              "verified-session-required"
            ]
          }
        },
        "required": [
          "actor",
          "editing_seats",
          "active_owners",
          "purchased_editing_seats",
          "capacity_policy_configured",
          "billing_reconciled",
          "capacity_hold_code",
          "mfa_mode"
        ],
        "additionalProperties": false
      },
      "RoleChangeInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "Admin",
              "Editor",
              "Viewer",
              "Billing"
            ]
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "role",
          "expected_version"
        ],
        "additionalProperties": false
      },
      "RemoveMemberInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "acknowledge": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "expected_version",
          "acknowledge"
        ],
        "additionalProperties": false
      },
      "TransferOwnerInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "expected_owner_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "acknowledge": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "expected_version",
          "expected_owner_version",
          "acknowledge"
        ],
        "additionalProperties": false
      },
      "BrandSourceInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "brand_kit_version_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "source_ref": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "text": {
            "type": "string"
          },
          "acknowledge_rights_and_no_private_data": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "brand_kit_version_id",
          "title",
          "source_ref",
          "text",
          "acknowledge_rights_and_no_private_data"
        ],
        "additionalProperties": false
      },
      "BrandSource": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "brand_kit_version_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "title": {
            "type": "string"
          },
          "source_ref": {
            "type": "string"
          },
          "content_digest": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "content_bytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "chunk_count": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "allowed_usage": {
            "type": "string",
            "const": "approved_context"
          },
          "embedding_model": {
            "type": "null"
          },
          "embedding_version": {
            "type": "null"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "deleted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "workspace_id",
          "brand_kit_version_id",
          "title",
          "source_ref",
          "content_digest",
          "content_bytes",
          "chunk_count",
          "allowed_usage",
          "embedding_model",
          "embedding_version",
          "created_at",
          "deleted_at"
        ],
        "additionalProperties": false
      },
      "BrandMemoryChunk": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "source_title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "source_ref": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "content": {
            "type": "string",
            "minLength": 1,
            "maxLength": 3000
          },
          "content_digest": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "ordinal": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "source_id",
          "source_title",
          "source_ref",
          "content",
          "content_digest",
          "ordinal"
        ],
        "additionalProperties": false
      },
      "BrandMemoryContext": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "brand_kit_version_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "retrieval_version": {
            "type": "string",
            "const": "lexical-1"
          },
          "retrieved_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "chunks": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "source_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "source_title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "source_ref": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048
                },
                "content": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 3000
                },
                "content_digest": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "ordinal": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "id",
                "source_id",
                "source_title",
                "source_ref",
                "content",
                "content_digest",
                "ordinal"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "brand_kit_version_id",
          "retrieval_version",
          "retrieved_at",
          "chunks"
        ],
        "additionalProperties": false
      },
      "MemoryPreviewInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 8000
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false
      },
      "WebhookEndpoint": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string"
          },
          "target_origin": {
            "type": "string",
            "format": "uri"
          },
          "subscriptions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "contact.unsubscribed",
                "contact.topic_unsubscribed",
                "contacts.imported"
              ]
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "paused",
              "enabled",
              "disabled"
            ]
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "secret_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "dns_checked_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "created_by": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "target_origin",
          "subscriptions",
          "status",
          "version",
          "secret_version",
          "created_at",
          "updated_at",
          "dns_checked_at",
          "created_by"
        ],
        "additionalProperties": false
      },
      "WebhookEndpointInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "url": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "subscriptions": {
            "minItems": 1,
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "contact.unsubscribed",
                "contact.topic_unsubscribed",
                "contacts.imported"
              ]
            }
          }
        },
        "required": [
          "name",
          "url",
          "subscriptions"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "properties": {
              "subscriptions": {
                "uniqueItems": true
              }
            }
          }
        ]
      },
      "WebhookVersionInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483646
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "WebhookRotateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483646
          },
          "retire_previous": {
            "default": false,
            "type": "boolean"
          },
          "acknowledge_key_cutover": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "required": [
                "retire_previous"
              ],
              "properties": {
                "retire_previous": {
                  "const": true
                }
              }
            },
            "then": {
              "required": [
                "acknowledge_key_cutover"
              ],
              "properties": {
                "acknowledge_key_cutover": {
                  "const": true
                }
              }
            }
          }
        ]
      },
      "WebhookConfiguration": {
        "type": "object",
        "properties": {
          "key_configured": {
            "type": "boolean"
          },
          "delivery_enabled": {
            "const": false
          }
        },
        "required": [
          "key_configured",
          "delivery_enabled"
        ],
        "additionalProperties": false
      },
      "EventEnvelope": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "schema_version": {
                "type": "number",
                "const": 1
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "occurred_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "recorded_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "trace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "contact.unsubscribed"
              },
              "aggregate": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "contact"
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "type",
                  "id",
                  "version"
                ],
                "additionalProperties": false
              },
              "data": {
                "type": "object",
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "scope": {
                    "type": "string",
                    "const": "marketing"
                  },
                  "reason": {
                    "type": "string",
                    "const": "recipient_opt_out"
                  }
                },
                "required": [
                  "contact_id",
                  "scope",
                  "reason"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "schema_version",
              "workspace_id",
              "occurred_at",
              "recorded_at",
              "trace_id",
              "type",
              "aggregate",
              "data"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "schema_version": {
                "type": "number",
                "const": 1
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "occurred_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "recorded_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "trace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "contact.topic_unsubscribed"
              },
              "aggregate": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "contact"
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "type",
                  "id",
                  "version"
                ],
                "additionalProperties": false
              },
              "data": {
                "type": "object",
                "properties": {
                  "contact_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "topic_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "scope": {
                    "type": "string",
                    "const": "topic"
                  },
                  "reason": {
                    "type": "string",
                    "const": "recipient_opt_out"
                  }
                },
                "required": [
                  "contact_id",
                  "topic_id",
                  "scope",
                  "reason"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "schema_version",
              "workspace_id",
              "occurred_at",
              "recorded_at",
              "trace_id",
              "type",
              "aggregate",
              "data"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "schema_version": {
                "type": "number",
                "const": 1
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "occurred_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "recorded_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "trace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "type": {
                "type": "string",
                "const": "contacts.imported"
              },
              "aggregate": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "operation"
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "type",
                  "id",
                  "version"
                ],
                "additionalProperties": false
              },
              "data": {
                "type": "object",
                "properties": {
                  "operation_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "processed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "created": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "existing": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "opt_in_granted": {
                    "type": "number",
                    "const": 0
                  }
                },
                "required": [
                  "operation_id",
                  "processed",
                  "created",
                  "existing",
                  "opt_in_granted"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "schema_version",
              "workspace_id",
              "occurred_at",
              "recorded_at",
              "trace_id",
              "type",
              "aggregate",
              "data"
            ],
            "additionalProperties": false
          }
        ]
      },
      "DispatchPolicyInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483646
          },
          "paused": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "enum": [
              "incident",
              "abuse_review",
              "maintenance",
              "verified_recovery"
            ]
          }
        },
        "required": [
          "expected_version",
          "paused",
          "reason"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "paused": {
                  "const": false
                }
              }
            },
            "then": {
              "properties": {
                "reason": {
                  "const": "verified_recovery"
                }
              }
            }
          }
        ]
      },
      "DispatchPolicy": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "global",
              "provider",
              "workspace"
            ]
          },
          "target": {
            "type": "string"
          },
          "paused": {
            "type": "boolean"
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "reason": {
            "type": "string",
            "enum": [
              "incident",
              "abuse_review",
              "maintenance",
              "verified_recovery"
            ]
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "scope",
          "target",
          "paused",
          "version",
          "reason",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "Brand": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "website": {
            "type": "string",
            "maxLength": 2048
          },
          "description": {
            "type": "string",
            "maxLength": 3000
          },
          "voice": {
            "type": "string",
            "maxLength": 1000
          },
          "tone_rules": {
            "type": "object",
            "properties": {
              "max_sentence_words": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200
              },
              "max_exclamations": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              }
            },
            "additionalProperties": false
          },
          "accent": {
            "type": "string",
            "pattern": "^#[\\da-fA-F]{6}$"
          },
          "background": {
            "type": "string",
            "pattern": "^#[\\da-fA-F]{6}$"
          },
          "font_stack": {
            "type": "string",
            "enum": [
              "Arial, sans-serif",
              "Georgia, serif",
              "Verdana, sans-serif"
            ]
          },
          "address": {
            "type": "string",
            "maxLength": 1000
          },
          "forbidden_phrases": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 200
            }
          },
          "approved_claims": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 1000
            }
          },
          "provenance": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string",
                  "maxLength": 2048
                },
                "captured_at": {
                  "type": "string",
                  "maxLength": 50
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "suggested",
                    "confirmed",
                    "edited"
                  ]
                }
              },
              "required": [
                "source",
                "captured_at",
                "status"
              ]
            }
          }
        },
        "required": [
          "name",
          "website",
          "description",
          "voice",
          "accent",
          "background",
          "font_stack",
          "address",
          "forbidden_phrases",
          "approved_claims",
          "provenance"
        ],
        "additionalProperties": false
      },
      "EmailSpec": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "enum": [
              "1.0",
              "1.1",
              "1.2",
              "1.3",
              "1.4"
            ]
          },
          "editing_mode": {
            "type": "string",
            "enum": [
              "structured",
              "raw_html"
            ]
          },
          "locale": {
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          },
          "direction": {
            "type": "string",
            "enum": [
              "ltr",
              "rtl"
            ]
          },
          "subject": {
            "type": "string",
            "maxLength": 200
          },
          "preheader": {
            "type": "string",
            "maxLength": 250
          },
          "brand_kit_version_id": {
            "type": "string",
            "maxLength": 80
          },
          "theme": {
            "type": "object",
            "properties": {
              "content_width_px": {
                "type": "integer",
                "minimum": 320,
                "maximum": 800
              },
              "background": {
                "type": "string",
                "pattern": "^#[\\da-fA-F]{6}$"
              },
              "accent": {
                "type": "string",
                "pattern": "^#[\\da-fA-F]{6}$"
              },
              "font_stack": {
                "type": "string",
                "enum": [
                  "Arial, sans-serif",
                  "Georgia, serif",
                  "Verdana, sans-serif"
                ]
              }
            },
            "required": [
              "content_width_px",
              "background",
              "accent",
              "font_stack"
            ],
            "additionalProperties": false
          },
          "sections": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "hero"
                        },
                        "heading": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 10000
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "heading",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "text"
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "inline": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "marks": {
                                    "maxItems": 2,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "bold",
                                        "italic"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "text",
                                  "marks"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "link"
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 10000
                                  },
                                  "href": {
                                    "type": "string",
                                    "maxLength": 2048
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "label",
                                  "href"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "break"
                                  }
                                },
                                "required": [
                                  "id",
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "field"
                                  },
                                  "key": {
                                    "type": "string",
                                    "const": "first_name"
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 1000
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "key",
                                  "fallback"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "isolate"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 10000
                                  },
                                  "direction": {
                                    "type": "string",
                                    "enum": [
                                      "ltr",
                                      "rtl"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "text",
                                  "direction"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "image"
                        },
                        "src": {
                          "type": "string",
                          "maxLength": 2048
                        },
                        "asset_ref": {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "variant_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "required": [
                            "asset_id",
                            "variant_id"
                          ],
                          "additionalProperties": false
                        },
                        "fallback_ref": {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "variant_id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          },
                          "required": [
                            "asset_id",
                            "variant_id"
                          ],
                          "additionalProperties": false
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "decorative": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "alt"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "button"
                        },
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "href": {
                          "type": "string",
                          "maxLength": 2048
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "label",
                        "href"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "divider"
                        }
                      },
                      "required": [
                        "id",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "social"
                        },
                        "links": {
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "maxLength": 80
                              },
                              "href": {
                                "type": "string",
                                "maxLength": 2048
                              }
                            },
                            "required": [
                              "label",
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "links"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "legal_footer"
                        },
                        "identity": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "address": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "unsubscribe_slot": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "identity",
                        "address",
                        "unsubscribe_slot"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "product_card"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "price": {
                          "type": "string",
                          "maxLength": 100
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "string",
                              "const": "explicit-money-1"
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "format_locale": {
                              "type": "string",
                              "enum": [
                                "en-US",
                                "en-GB",
                                "fr-FR",
                                "de-DE",
                                "es-ES",
                                "it-IT",
                                "pt-BR",
                                "nl-NL",
                                "sv-SE",
                                "da-DK",
                                "no-NO",
                                "fi-FI",
                                "pl-PL",
                                "cs-CZ",
                                "tr-TR",
                                "ja-JP",
                                "ko-KR",
                                "zh-CN",
                                "zh-TW",
                                "hi-IN",
                                "ar-SA",
                                "he-IL"
                              ]
                            },
                            "numbering_system": {
                              "type": "string",
                              "enum": [
                                "locale",
                                "latn"
                              ]
                            },
                            "display": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            }
                          },
                          "required": [
                            "version",
                            "amount",
                            "currency",
                            "format_locale",
                            "numbering_system",
                            "display"
                          ],
                          "additionalProperties": false
                        },
                        "href": {
                          "type": "string",
                          "maxLength": 2048
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "title",
                        "description",
                        "price",
                        "href"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "type": {
                          "type": "string",
                          "const": "custom_html"
                        },
                        "html": {
                          "type": "string",
                          "maxLength": 200000
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "html"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "type": {
                      "type": "string",
                      "const": "columns"
                    },
                    "columns": {
                      "minItems": 1,
                      "maxItems": 2,
                      "type": "array",
                      "items": {
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "hero"
                                },
                                "heading": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "text": {
                                  "type": "string",
                                  "maxLength": 10000
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "heading",
                                "text"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "text"
                                },
                                "text": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "inline": {
                                  "minItems": 1,
                                  "maxItems": 64,
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "text"
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "marks": {
                                            "maxItems": 2,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "text",
                                          "marks"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "link"
                                          },
                                          "label": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 10000
                                          },
                                          "href": {
                                            "type": "string",
                                            "maxLength": 2048
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "label",
                                          "href"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "break"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "field"
                                          },
                                          "key": {
                                            "type": "string",
                                            "const": "first_name"
                                          },
                                          "fallback": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 1000
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "key",
                                          "fallback"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "isolate"
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "direction": {
                                            "type": "string",
                                            "enum": [
                                              "ltr",
                                              "rtl"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "text",
                                          "direction"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "text"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "image"
                                },
                                "src": {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                "asset_ref": {
                                  "type": "object",
                                  "properties": {
                                    "asset_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "variant_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    }
                                  },
                                  "required": [
                                    "asset_id",
                                    "variant_id"
                                  ],
                                  "additionalProperties": false
                                },
                                "fallback_ref": {
                                  "type": "object",
                                  "properties": {
                                    "asset_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "variant_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    }
                                  },
                                  "required": [
                                    "asset_id",
                                    "variant_id"
                                  ],
                                  "additionalProperties": false
                                },
                                "alt": {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                "decorative": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "alt"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "button"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "href": {
                                  "type": "string",
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "label",
                                "href"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "divider"
                                }
                              },
                              "required": [
                                "id",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "social"
                                },
                                "links": {
                                  "maxItems": 10,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "label": {
                                        "type": "string",
                                        "maxLength": 80
                                      },
                                      "href": {
                                        "type": "string",
                                        "maxLength": 2048
                                      }
                                    },
                                    "required": [
                                      "label",
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "links"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "legal_footer"
                                },
                                "identity": {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                "address": {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                "unsubscribe_slot": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "identity",
                                "address",
                                "unsubscribe_slot"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "product_card"
                                },
                                "title": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "price": {
                                  "type": "string",
                                  "maxLength": 100
                                },
                                "money": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "string",
                                      "const": "explicit-money-1"
                                    },
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                                    },
                                    "currency": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    "format_locale": {
                                      "type": "string",
                                      "enum": [
                                        "en-US",
                                        "en-GB",
                                        "fr-FR",
                                        "de-DE",
                                        "es-ES",
                                        "it-IT",
                                        "pt-BR",
                                        "nl-NL",
                                        "sv-SE",
                                        "da-DK",
                                        "no-NO",
                                        "fi-FI",
                                        "pl-PL",
                                        "cs-CZ",
                                        "tr-TR",
                                        "ja-JP",
                                        "ko-KR",
                                        "zh-CN",
                                        "zh-TW",
                                        "hi-IN",
                                        "ar-SA",
                                        "he-IL"
                                      ]
                                    },
                                    "numbering_system": {
                                      "type": "string",
                                      "enum": [
                                        "locale",
                                        "latn"
                                      ]
                                    },
                                    "display": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "amount",
                                    "currency",
                                    "format_locale",
                                    "numbering_system",
                                    "display"
                                  ],
                                  "additionalProperties": false
                                },
                                "href": {
                                  "type": "string",
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "title",
                                "description",
                                "price",
                                "href"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom_html"
                                },
                                "html": {
                                  "type": "string",
                                  "maxLength": 200000
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "html"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "columns"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "raw_html": {
            "type": "string",
            "maxLength": 2000000
          },
          "tracking": {
            "type": "object",
            "properties": {
              "utm_source": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "utm_medium": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "utm_campaign": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "required": [
              "utm_source",
              "utm_medium",
              "utm_campaign"
            ],
            "additionalProperties": false
          },
          "asset_registry": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "asset_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "variant_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                }
              },
              "required": [
                "asset_id",
                "variant_id"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "schema_version",
          "editing_mode",
          "locale",
          "direction",
          "subject",
          "preheader",
          "brand_kit_version_id",
          "theme",
          "sections"
        ],
        "additionalProperties": false
      },
      "ConversionProposalInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "ConversionAcceptInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "source_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "proposal_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "acknowledge_layout_change": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "expected_version",
          "source_hash",
          "proposal_hash",
          "acknowledge_layout_change"
        ],
        "additionalProperties": false
      },
      "ConversionProposal": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "source_doc_version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "source_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "proposal_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "original_html": {
                "type": "string",
                "maxLength": 2097152
              },
              "original_preview_html": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4194304
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_profile": {
                "type": "string",
                "enum": [
                  "legacy-stored-1",
                  "exact-utf8-1"
                ]
              },
              "browser_profile": {
                "type": "string",
                "const": "raw-browser-1"
              },
              "converted_nodes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 200
              },
              "opaque_nodes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 200
              },
              "notes": {
                "maxItems": 201,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "layout_change",
                        "opaque_preserved",
                        "unsupported_source",
                        "limit"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 500
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "additionalProperties": false
                }
              },
              "status": {
                "type": "string",
                "const": "available"
              },
              "spec": {
                "type": "object",
                "properties": {
                  "schema_version": {
                    "type": "string",
                    "enum": [
                      "1.0",
                      "1.1",
                      "1.2",
                      "1.3",
                      "1.4"
                    ]
                  },
                  "editing_mode": {
                    "type": "string",
                    "enum": [
                      "structured",
                      "raw_html"
                    ]
                  },
                  "locale": {
                    "type": "string",
                    "enum": [
                      "en-US",
                      "en-GB",
                      "fr-FR",
                      "de-DE",
                      "es-ES",
                      "it-IT",
                      "pt-BR",
                      "nl-NL",
                      "sv-SE",
                      "da-DK",
                      "no-NO",
                      "fi-FI",
                      "pl-PL",
                      "cs-CZ",
                      "tr-TR",
                      "ja-JP",
                      "ko-KR",
                      "zh-CN",
                      "zh-TW",
                      "hi-IN",
                      "ar-SA",
                      "he-IL"
                    ]
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "ltr",
                      "rtl"
                    ]
                  },
                  "subject": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "preheader": {
                    "type": "string",
                    "maxLength": 250
                  },
                  "brand_kit_version_id": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "theme": {
                    "type": "object",
                    "properties": {
                      "content_width_px": {
                        "type": "integer",
                        "minimum": 320,
                        "maximum": 800
                      },
                      "background": {
                        "type": "string",
                        "pattern": "^#[\\da-fA-F]{6}$"
                      },
                      "accent": {
                        "type": "string",
                        "pattern": "^#[\\da-fA-F]{6}$"
                      },
                      "font_stack": {
                        "type": "string",
                        "enum": [
                          "Arial, sans-serif",
                          "Georgia, serif",
                          "Verdana, sans-serif"
                        ]
                      }
                    },
                    "required": [
                      "content_width_px",
                      "background",
                      "accent",
                      "font_stack"
                    ],
                    "additionalProperties": false
                  },
                  "sections": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "hero"
                                },
                                "heading": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "text": {
                                  "type": "string",
                                  "maxLength": 10000
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "heading",
                                "text"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "text"
                                },
                                "text": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "inline": {
                                  "minItems": 1,
                                  "maxItems": 64,
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "text"
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "marks": {
                                            "maxItems": 2,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "text",
                                          "marks"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "link"
                                          },
                                          "label": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 10000
                                          },
                                          "href": {
                                            "type": "string",
                                            "maxLength": 2048
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "label",
                                          "href"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "break"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "field"
                                          },
                                          "key": {
                                            "type": "string",
                                            "const": "first_name"
                                          },
                                          "fallback": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 1000
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "key",
                                          "fallback"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 80
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "isolate"
                                          },
                                          "text": {
                                            "type": "string",
                                            "maxLength": 10000
                                          },
                                          "direction": {
                                            "type": "string",
                                            "enum": [
                                              "ltr",
                                              "rtl"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "text",
                                          "direction"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "text"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "image"
                                },
                                "src": {
                                  "type": "string",
                                  "maxLength": 2048
                                },
                                "asset_ref": {
                                  "type": "object",
                                  "properties": {
                                    "asset_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "variant_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    }
                                  },
                                  "required": [
                                    "asset_id",
                                    "variant_id"
                                  ],
                                  "additionalProperties": false
                                },
                                "fallback_ref": {
                                  "type": "object",
                                  "properties": {
                                    "asset_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    },
                                    "variant_id": {
                                      "type": "string",
                                      "format": "uuid",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                    }
                                  },
                                  "required": [
                                    "asset_id",
                                    "variant_id"
                                  ],
                                  "additionalProperties": false
                                },
                                "alt": {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                "decorative": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "alt"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "button"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "href": {
                                  "type": "string",
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "label",
                                "href"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "divider"
                                }
                              },
                              "required": [
                                "id",
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "social"
                                },
                                "links": {
                                  "maxItems": 10,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "label": {
                                        "type": "string",
                                        "maxLength": 80
                                      },
                                      "href": {
                                        "type": "string",
                                        "maxLength": 2048
                                      }
                                    },
                                    "required": [
                                      "label",
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "links"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "legal_footer"
                                },
                                "identity": {
                                  "type": "string",
                                  "maxLength": 500
                                },
                                "address": {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                "unsubscribe_slot": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "identity",
                                "address",
                                "unsubscribe_slot"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "product_card"
                                },
                                "title": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 10000
                                },
                                "price": {
                                  "type": "string",
                                  "maxLength": 100
                                },
                                "money": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "string",
                                      "const": "explicit-money-1"
                                    },
                                    "amount": {
                                      "type": "string",
                                      "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                                    },
                                    "currency": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    "format_locale": {
                                      "type": "string",
                                      "enum": [
                                        "en-US",
                                        "en-GB",
                                        "fr-FR",
                                        "de-DE",
                                        "es-ES",
                                        "it-IT",
                                        "pt-BR",
                                        "nl-NL",
                                        "sv-SE",
                                        "da-DK",
                                        "no-NO",
                                        "fi-FI",
                                        "pl-PL",
                                        "cs-CZ",
                                        "tr-TR",
                                        "ja-JP",
                                        "ko-KR",
                                        "zh-CN",
                                        "zh-TW",
                                        "hi-IN",
                                        "ar-SA",
                                        "he-IL"
                                      ]
                                    },
                                    "numbering_system": {
                                      "type": "string",
                                      "enum": [
                                        "locale",
                                        "latn"
                                      ]
                                    },
                                    "display": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "amount",
                                    "currency",
                                    "format_locale",
                                    "numbering_system",
                                    "display"
                                  ],
                                  "additionalProperties": false
                                },
                                "href": {
                                  "type": "string",
                                  "maxLength": 2048
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "title",
                                "description",
                                "price",
                                "href"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom_html"
                                },
                                "html": {
                                  "type": "string",
                                  "maxLength": 200000
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "html"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "type": {
                              "type": "string",
                              "const": "columns"
                            },
                            "columns": {
                              "minItems": 1,
                              "maxItems": 2,
                              "type": "array",
                              "items": {
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "hero"
                                        },
                                        "heading": {
                                          "type": "string",
                                          "maxLength": 10000
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 10000
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "heading",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 10000
                                        },
                                        "inline": {
                                          "minItems": 1,
                                          "maxItems": 64,
                                          "type": "array",
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 80
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "const": "text"
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 10000
                                                  },
                                                  "marks": {
                                                    "maxItems": 2,
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "enum": [
                                                        "bold",
                                                        "italic"
                                                      ]
                                                    }
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "type",
                                                  "text",
                                                  "marks"
                                                ],
                                                "additionalProperties": false
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 80
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "const": "link"
                                                  },
                                                  "label": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 10000
                                                  },
                                                  "href": {
                                                    "type": "string",
                                                    "maxLength": 2048
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "type",
                                                  "label",
                                                  "href"
                                                ],
                                                "additionalProperties": false
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 80
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "const": "break"
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "type"
                                                ],
                                                "additionalProperties": false
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 80
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "const": "field"
                                                  },
                                                  "key": {
                                                    "type": "string",
                                                    "const": "first_name"
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 1000
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "type",
                                                  "key",
                                                  "fallback"
                                                ],
                                                "additionalProperties": false
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 80
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "const": "isolate"
                                                  },
                                                  "text": {
                                                    "type": "string",
                                                    "maxLength": 10000
                                                  },
                                                  "direction": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ltr",
                                                      "rtl"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "id",
                                                  "type",
                                                  "text",
                                                  "direction"
                                                ],
                                                "additionalProperties": false
                                              }
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "image"
                                        },
                                        "src": {
                                          "type": "string",
                                          "maxLength": 2048
                                        },
                                        "asset_ref": {
                                          "type": "object",
                                          "properties": {
                                            "asset_id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "variant_id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            }
                                          },
                                          "required": [
                                            "asset_id",
                                            "variant_id"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "fallback_ref": {
                                          "type": "object",
                                          "properties": {
                                            "asset_id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            },
                                            "variant_id": {
                                              "type": "string",
                                              "format": "uuid",
                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                            }
                                          },
                                          "required": [
                                            "asset_id",
                                            "variant_id"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "alt": {
                                          "type": "string",
                                          "maxLength": 500
                                        },
                                        "decorative": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "alt"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "button"
                                        },
                                        "label": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200
                                        },
                                        "href": {
                                          "type": "string",
                                          "maxLength": 2048
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "label",
                                        "href"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "divider"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "social"
                                        },
                                        "links": {
                                          "maxItems": 10,
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "label": {
                                                "type": "string",
                                                "maxLength": 80
                                              },
                                              "href": {
                                                "type": "string",
                                                "maxLength": 2048
                                              }
                                            },
                                            "required": [
                                              "label",
                                              "href"
                                            ],
                                            "additionalProperties": false
                                          }
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "links"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "legal_footer"
                                        },
                                        "identity": {
                                          "type": "string",
                                          "maxLength": 500
                                        },
                                        "address": {
                                          "type": "string",
                                          "maxLength": 1000
                                        },
                                        "unsubscribe_slot": {
                                          "type": "boolean",
                                          "const": true
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "identity",
                                        "address",
                                        "unsubscribe_slot"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "product_card"
                                        },
                                        "title": {
                                          "type": "string",
                                          "maxLength": 10000
                                        },
                                        "description": {
                                          "type": "string",
                                          "maxLength": 10000
                                        },
                                        "price": {
                                          "type": "string",
                                          "maxLength": 100
                                        },
                                        "money": {
                                          "type": "object",
                                          "properties": {
                                            "version": {
                                              "type": "string",
                                              "const": "explicit-money-1"
                                            },
                                            "amount": {
                                              "type": "string",
                                              "pattern": "^-?(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,6})?$"
                                            },
                                            "currency": {
                                              "type": "string",
                                              "pattern": "^[A-Z]{3}$"
                                            },
                                            "format_locale": {
                                              "type": "string",
                                              "enum": [
                                                "en-US",
                                                "en-GB",
                                                "fr-FR",
                                                "de-DE",
                                                "es-ES",
                                                "it-IT",
                                                "pt-BR",
                                                "nl-NL",
                                                "sv-SE",
                                                "da-DK",
                                                "no-NO",
                                                "fi-FI",
                                                "pl-PL",
                                                "cs-CZ",
                                                "tr-TR",
                                                "ja-JP",
                                                "ko-KR",
                                                "zh-CN",
                                                "zh-TW",
                                                "hi-IN",
                                                "ar-SA",
                                                "he-IL"
                                              ]
                                            },
                                            "numbering_system": {
                                              "type": "string",
                                              "enum": [
                                                "locale",
                                                "latn"
                                              ]
                                            },
                                            "display": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          },
                                          "required": [
                                            "version",
                                            "amount",
                                            "currency",
                                            "format_locale",
                                            "numbering_system",
                                            "display"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "href": {
                                          "type": "string",
                                          "maxLength": 2048
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "title",
                                        "description",
                                        "price",
                                        "href"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 80
                                        },
                                        "type": {
                                          "type": "string",
                                          "const": "custom_html"
                                        },
                                        "html": {
                                          "type": "string",
                                          "maxLength": 200000
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "type",
                                        "html"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "columns"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "raw_html": {
                    "type": "string",
                    "maxLength": 2000000
                  },
                  "tracking": {
                    "type": "object",
                    "properties": {
                      "utm_source": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "utm_medium": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "utm_campaign": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    },
                    "required": [
                      "utm_source",
                      "utm_medium",
                      "utm_campaign"
                    ],
                    "additionalProperties": false
                  },
                  "asset_registry": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "asset_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "variant_id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "required": [
                        "asset_id",
                        "variant_id"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "schema_version",
                  "editing_mode",
                  "locale",
                  "direction",
                  "subject",
                  "preheader",
                  "brand_kit_version_id",
                  "theme",
                  "sections"
                ],
                "additionalProperties": false
              },
              "preview_html": {
                "type": "string",
                "maxLength": 2000000
              }
            },
            "required": [
              "source_doc_version",
              "source_hash",
              "proposal_hash",
              "original_html",
              "original_preview_html",
              "source_profile",
              "browser_profile",
              "converted_nodes",
              "opaque_nodes",
              "notes",
              "status",
              "spec",
              "preview_html"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "source_doc_version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "source_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "proposal_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "original_html": {
                "type": "string",
                "maxLength": 2097152
              },
              "original_preview_html": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4194304
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source_profile": {
                "type": "string",
                "enum": [
                  "legacy-stored-1",
                  "exact-utf8-1"
                ]
              },
              "browser_profile": {
                "type": "string",
                "const": "raw-browser-1"
              },
              "converted_nodes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 200
              },
              "opaque_nodes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 200
              },
              "notes": {
                "maxItems": 201,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "layout_change",
                        "opaque_preserved",
                        "unsupported_source",
                        "limit"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 500
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ],
                  "additionalProperties": false
                }
              },
              "status": {
                "type": "string",
                "const": "unsupported"
              },
              "spec": {
                "type": "null"
              },
              "preview_html": {
                "type": "null"
              }
            },
            "required": [
              "source_doc_version",
              "source_hash",
              "proposal_hash",
              "original_html",
              "original_preview_html",
              "source_profile",
              "browser_profile",
              "converted_nodes",
              "opaque_nodes",
              "notes",
              "status",
              "spec",
              "preview_html"
            ],
            "additionalProperties": false
          }
        ]
      },
      "KeyInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "scopes": {
            "minItems": 1,
            "maxItems": 19,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "assets:read",
                "assets:write",
                "brands:read",
                "brands:write",
                "emails:read",
                "emails:write",
                "emails:export",
                "audience:read",
                "audience:write",
                "campaigns:read",
                "campaigns:write",
                "campaigns:approve",
                "campaigns:send",
                "integrations:read",
                "events:read",
                "webhooks:read",
                "webhooks:write",
                "sender:read",
                "sender:write"
              ]
            }
          },
          "expires_in_days": {
            "default": 90,
            "type": "integer",
            "minimum": 1,
            "maximum": 365
          }
        },
        "required": [
          "name",
          "scopes"
        ],
        "additionalProperties": false
      },
      "RemixInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "LocaleDraftInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "locale": {
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          }
        },
        "required": [
          "title",
          "locale"
        ],
        "additionalProperties": false
      },
      "Mapping": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "preferred_locale": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "attributes": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "consent_status": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "consent_source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "consent_timestamp": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "consent_proof": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false
      },
      "FieldInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,47}$"
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "number",
              "boolean",
              "date"
            ]
          }
        },
        "required": [
          "key",
          "label",
          "type"
        ],
        "additionalProperties": false
      },
      "LocalSessionInput": {
        "type": "object",
        "properties": {
          "secret": {
            "type": "string"
          }
        },
        "required": [
          "secret"
        ],
        "additionalProperties": false
      },
      "Empty": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "WorkspaceInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "EmailInput": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "spec": {
            "$ref": "#/components/schemas/EmailSourceSpec"
          },
          "starter": {
            "type": "string",
            "pattern": "^[a-z0-9-]{3,60}$",
            "description": "Built-in starter template id. Builds an editable draft under the confirmed brand kit; mutually exclusive with spec."
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      },
      "LegacyGenerateInput": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "minLength": 5,
            "maxLength": 8000
          },
          "brand_kit_version_id": {
            "type": "string",
            "format": "uuid"
          },
          "base_email_id": {
            "type": "string",
            "format": "uuid"
          },
          "base_version": {
            "type": "integer"
          },
          "locale": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "single",
              "series"
            ],
            "default": "single"
          },
          "count": {
            "type": "integer",
            "minimum": 2,
            "maximum": 10
          }
        },
        "required": [
          "prompt",
          "brand_kit_version_id"
        ],
        "additionalProperties": false
      },
      "RevisionGenerateInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "intent": {
            "type": "string",
            "const": "revise_blocks"
          },
          "prompt": {
            "type": "string",
            "minLength": 5,
            "maxLength": 8000
          },
          "brand_kit_version_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "base_email_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "base_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "base_spec_sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "target_keys": {
            "minItems": 1,
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          },
          "locale": {
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          },
          "mode": {
            "type": "string",
            "const": "single"
          }
        },
        "required": [
          "intent",
          "prompt",
          "brand_kit_version_id",
          "base_email_id",
          "base_version",
          "base_spec_sha256",
          "target_keys",
          "locale",
          "mode"
        ],
        "additionalProperties": false
      },
      "GenerateInput": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/LegacyGenerateInput"
          },
          {
            "$ref": "#/components/schemas/RevisionGenerateInput"
          }
        ]
      },
      "DraftInput": {
        "type": "object",
        "properties": {
          "spec": {
            "$ref": "#/components/schemas/EmailSourceSpec"
          }
        },
        "required": [
          "spec"
        ],
        "additionalProperties": false
      },
      "RestoreInput": {
        "type": "object",
        "properties": {
          "revision_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "revision_id"
        ],
        "additionalProperties": false
      },
      "PreviewInput": {
        "type": "object",
        "properties": {
          "spec": {
            "$ref": "#/components/schemas/EmailSourceSpec"
          }
        },
        "required": [
          "spec"
        ],
        "additionalProperties": false
      },
      "HtmlInput": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "maxLength": 2097152,
            "x-max-utf8-bytes": 2097152
          }
        },
        "required": [
          "html"
        ],
        "additionalProperties": false
      },
      "UrlInput": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "NamedInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "ProfileInput": {
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1
          },
          "attrs": {
            "type": "object",
            "maxProperties": 100,
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            }
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 200
          },
          "tag_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 200
          },
          "preferred_locale": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "Rule": {
        "anyOf": [
          {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "tag",
                      "list"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "in",
                      "not_in"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "id",
                  "op"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "attribute"
                  },
                  "field": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,47}$"
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "eq",
                      "neq",
                      "contains",
                      "gt",
                      "gte",
                      "lt",
                      "lte",
                      "exists",
                      "not_exists"
                    ]
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 2000
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  }
                },
                "required": [
                  "kind",
                  "field",
                  "op"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "engagement"
                  },
                  "event": {
                    "type": "string",
                    "enum": [
                      "opened",
                      "clicked",
                      "delivered"
                    ]
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "observed",
                      "not_observed"
                    ]
                  },
                  "within_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  }
                },
                "required": [
                  "kind",
                  "event",
                  "op",
                  "within_days"
                ],
                "additionalProperties": false
              }
            ]
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "all",
                  "any"
                ]
              },
              "children": {
                "type": "array",
                "minItems": 1,
                "maxItems": 20,
                "items": {
                  "$ref": "#/components/schemas/Rule"
                }
              }
            },
            "required": [
              "kind",
              "children"
            ],
            "additionalProperties": false
          }
        ]
      },
      "SegmentInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "rule": {
            "$ref": "#/components/schemas/Rule"
          }
        },
        "required": [
          "name",
          "rule"
        ],
        "additionalProperties": true
      },
      "SegmentVersionInput": {
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1
          },
          "rule": {
            "$ref": "#/components/schemas/Rule"
          }
        },
        "required": [
          "expected_version",
          "rule"
        ],
        "additionalProperties": true
      },
      "VersionInput": {
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "expected_version"
        ],
        "additionalProperties": false
      },
      "InspectInput": {
        "type": "object",
        "properties": {
          "csv": {
            "type": "string",
            "maxLength": 2097152
          }
        },
        "required": [
          "csv"
        ],
        "additionalProperties": false
      },
      "ImportInput": {
        "type": "object",
        "properties": {
          "csv": {
            "type": "string",
            "maxLength": 2097152
          },
          "mapping": {
            "$ref": "#/components/schemas/Mapping"
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 20
          },
          "tag_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "maxItems": 20
          }
        },
        "required": [
          "csv"
        ],
        "additionalProperties": false
      },
      "RecipientAssessmentInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483646
          },
          "expected_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expected_version",
          "expected_digest",
          "topic_id"
        ],
        "additionalProperties": false
      },
      "RecipientAssessmentView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "campaign_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "configuration_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "configuration_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "configuration_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "snapshot_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "topic_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "cancelled",
              "failed"
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "processed_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "checks_clear_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "excluded_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "rule_version": {
            "type": "string",
            "const": "recipient-assessment-1"
          },
          "authorization_issued": {
            "type": "boolean",
            "const": false
          },
          "global_blockers": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string",
                "const": "CAMPAIGN_APPROVAL_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "PROVIDER_SENDER_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "REAL_CLIENT_PREFLIGHT_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "SEND_BUDGET_UNAVAILABLE"
              },
              {
                "type": "string",
                "const": "LOCALE_POLICY_UNAVAILABLE"
              }
            ],
            "items": false,
            "minItems": 5,
            "maxItems": 5
          },
          "created_by": {
            "type": "string"
          },
          "created_api_key_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "campaign_id",
          "configuration_id",
          "configuration_version",
          "configuration_digest",
          "revision_id",
          "snapshot_id",
          "topic_id",
          "status",
          "total_count",
          "processed_count",
          "checks_clear_count",
          "excluded_count",
          "created_at",
          "updated_at",
          "completed_at",
          "rule_version",
          "authorization_issued",
          "global_blockers",
          "created_by",
          "created_api_key_id"
        ],
        "additionalProperties": false
      },
      "RecipientObservationView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "assessment_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "contact_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "captured_reason": {
            "type": "string",
            "enum": [
              "ELIGIBLE",
              "SUPPRESSED",
              "CONTACT_DELETED",
              "CONSENT_NOT_CONFIRMED"
            ]
          },
          "captured_locale": {
            "type": "string"
          },
          "current_locale": {
            "type": [
              "string",
              "null"
            ]
          },
          "consent_version": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "preference_version": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "current_reason": {
            "type": "string",
            "enum": [
              "CHECKS_CLEAR",
              "CONTACT_MISSING",
              "CONTACT_DELETED",
              "CAPTURED_EXCLUDED",
              "SUPPRESSED",
              "CONSENT_NOT_CONFIRMED",
              "TOPIC_NOT_SELECTED",
              "TOPIC_NOT_CONFIRMED",
              "FREQUENCY_LIMIT"
            ]
          },
          "reasons": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "CONTACT_MISSING",
                "CONTACT_DELETED",
                "CAPTURED_EXCLUDED",
                "SUPPRESSED",
                "CONSENT_NOT_CONFIRMED",
                "TOPIC_NOT_SELECTED",
                "TOPIC_NOT_CONFIRMED",
                "FREQUENCY_LIMIT"
              ]
            }
          },
          "observed_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "rule_version": {
            "type": "string",
            "const": "recipient-assessment-1"
          },
          "authorization_issued": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "id",
          "assessment_id",
          "contact_id",
          "captured_reason",
          "captured_locale",
          "current_locale",
          "consent_version",
          "preference_version",
          "current_reason",
          "reasons",
          "observed_at",
          "rule_version",
          "authorization_issued"
        ],
        "additionalProperties": false
      },
      "CampaignConfigurationInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483646
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "planned_timing": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "local_time": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$"
                  },
                  "time_zone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
                  },
                  "utc_offset": {
                    "type": "string",
                    "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                  }
                },
                "required": [
                  "local_time",
                  "time_zone",
                  "utc_offset"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "audience_snapshot_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "expected_version",
          "name",
          "revision_id",
          "planned_timing"
        ],
        "additionalProperties": false
      },
      "CampaignConfigurationView": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "state": {
            "type": "string"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "intent": {
            "type": "object",
            "properties": {
              "artifact_hash": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "planned_timing": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "local_time": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$"
                      },
                      "time_zone": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
                      },
                      "utc_offset": {
                        "type": "string",
                        "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                      },
                      "utc": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      }
                    },
                    "required": [
                      "local_time",
                      "time_zone",
                      "utc_offset",
                      "utc"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "artifact_hash",
              "planned_timing"
            ],
            "additionalProperties": false
          },
          "audience_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "eligible_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "excluded_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "audience_snapshot": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "segment_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "segment_version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  "evaluated_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                  },
                  "matched_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "eligible_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "digest": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  }
                },
                "required": [
                  "id",
                  "segment_id",
                  "segment_version",
                  "evaluated_at",
                  "matched_count",
                  "eligible_count",
                  "digest"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "digest": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "name",
          "version",
          "state",
          "revision_id",
          "intent",
          "audience_count",
          "eligible_count",
          "excluded_count",
          "audience_snapshot",
          "digest",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CampaignConfigurationSnapshot": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "campaign_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "revision_no": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "name": {
            "type": "string"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "artifact_hash": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "planned_timing": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "local_time": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$"
                  },
                  "time_zone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
                  },
                  "utc_offset": {
                    "type": "string",
                    "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                  },
                  "utc": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  }
                },
                "required": [
                  "local_time",
                  "time_zone",
                  "utc_offset",
                  "utc"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "audience_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "eligible_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "excluded_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "audience_snapshot": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "segment_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "segment_version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  "evaluated_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                  },
                  "matched_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "eligible_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "digest": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  }
                },
                "required": [
                  "id",
                  "segment_id",
                  "segment_version",
                  "evaluated_at",
                  "matched_count",
                  "eligible_count",
                  "digest"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "digest": {
            "type": "string"
          },
          "actor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "captured_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "origin": {
            "type": "string",
            "enum": [
              "migration_current",
              "runtime_change"
            ]
          }
        },
        "required": [
          "id",
          "campaign_id",
          "revision_no",
          "name",
          "revision_id",
          "artifact_hash",
          "planned_timing",
          "audience_count",
          "eligible_count",
          "excluded_count",
          "audience_snapshot",
          "digest",
          "actor_id",
          "captured_at",
          "origin"
        ],
        "additionalProperties": false
      },
      "AudienceSnapshotMetadata": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "segment_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "segment_version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 2147483647
          },
          "evaluated_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          },
          "matched_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "eligible_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "segment_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "excluded_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "created_at": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
          }
        },
        "required": [
          "id",
          "segment_id",
          "segment_version",
          "evaluated_at",
          "matched_count",
          "eligible_count",
          "digest",
          "segment_name",
          "excluded_count",
          "created_at"
        ],
        "additionalProperties": false
      },
      "CampaignInput": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "revision_id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "name",
          "revision_id"
        ],
        "additionalProperties": false
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "details": {}
            },
            "required": [
              "code",
              "message",
              "retryable"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "request_id",
          "error"
        ],
        "additionalProperties": true
      },
      "Email": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "doc_version": {
            "type": "integer"
          },
          "spec": {
            "$ref": "#/components/schemas/EmailSpec"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "title",
          "doc_version",
          "spec",
          "updated_at"
        ],
        "additionalProperties": true
      },
      "BrandVersion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "integer"
          },
          "data": {
            "$ref": "#/components/schemas/Brand"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "version",
          "data",
          "created_at"
        ],
        "additionalProperties": true
      },
      "Key": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_by": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "prefix",
          "scopes",
          "created_by",
          "created_at",
          "expires_at",
          "revoked_at"
        ],
        "additionalProperties": true
      },
      "Revision": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email_id": {
            "type": "string",
            "format": "uuid"
          },
          "revision_no": {
            "type": "integer"
          },
          "subject": {
            "type": "string"
          },
          "artifact_hash": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "email_id",
          "revision_no",
          "subject",
          "artifact_hash",
          "created_at"
        ],
        "additionalProperties": true
      },
      "Contact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email_original": {
            "type": "string"
          },
          "subscription": {
            "type": "string",
            "enum": [
              "subscribed",
              "pending_confirmation",
              "unsubscribed"
            ]
          },
          "suppressed": {
            "type": "boolean"
          },
          "deleted": {
            "type": "boolean"
          },
          "consent_version": {
            "type": "integer"
          },
          "profile_version": {
            "type": "integer"
          },
          "attrs": {
            "type": "object",
            "additionalProperties": true
          },
          "list_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "tag_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "preferred_locale": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "email_original",
          "subscription",
          "suppressed",
          "deleted",
          "consent_version",
          "profile_version",
          "attrs",
          "list_ids",
          "tag_ids",
          "preferred_locale",
          "created_at"
        ],
        "additionalProperties": true
      },
      "Campaign": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "state": {
            "type": "string"
          },
          "revision_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "intent": {
            "type": "object",
            "properties": {
              "artifact_hash": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "planned_timing": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "local_time": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$"
                      },
                      "time_zone": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[A-Za-z][A-Za-z0-9_+\\-]*(?:\\/[A-Za-z0-9_+\\-]+)*$"
                      },
                      "utc_offset": {
                        "type": "string",
                        "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                      },
                      "utc": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      }
                    },
                    "required": [
                      "local_time",
                      "time_zone",
                      "utc_offset",
                      "utc"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "artifact_hash",
              "planned_timing"
            ],
            "additionalProperties": false
          },
          "audience_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "eligible_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "excluded_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "audience_snapshot": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "segment_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "segment_version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  "evaluated_at": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
                  },
                  "matched_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "eligible_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "digest": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  }
                },
                "required": [
                  "id",
                  "segment_id",
                  "segment_version",
                  "evaluated_at",
                  "matched_count",
                  "eligible_count",
                  "digest"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "digest": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "name",
          "version",
          "state",
          "revision_id",
          "intent",
          "audience_count",
          "eligible_count",
          "excluded_count",
          "audience_snapshot",
          "digest",
          "created_at"
        ],
        "additionalProperties": false
      },
      "Segment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "current_version": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "current_version",
          "created_at"
        ],
        "additionalProperties": true
      },
      "Audit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "actor": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "event_hash": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "actor",
          "action",
          "resource_id",
          "event_hash",
          "created_at"
        ],
        "additionalProperties": true
      },
      "Operation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "result": {},
          "error": {},
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "creation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreationMetadata"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "state"
        ],
        "additionalProperties": true
      },
      "WebhookDelivery": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "endpoint_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "event_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "leased",
              "acknowledged",
              "blocked",
              "terminal",
              "dead_letter",
              "disabled"
            ]
          },
          "failure_attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10
          },
          "attempt_number": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "next_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "error_class": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "authority_revoked",
                  "event_integrity",
                  "unsafe_target",
                  "capacity",
                  "aborted",
                  "transient",
                  "rate_deferred",
                  "retry_budget_exhausted",
                  "http_terminal",
                  "key_unavailable"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "policy_version": {
            "type": "number",
            "const": 1
          }
        },
        "required": [
          "id",
          "workspace_id",
          "endpoint_id",
          "event_id",
          "state",
          "failure_attempts",
          "attempt_number",
          "created_at",
          "deadline",
          "next_at",
          "error_class",
          "policy_version"
        ],
        "additionalProperties": false
      },
      "WebhookAttempt": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "delivery_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "attempt_number": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "phase": {
            "type": "string",
            "enum": [
              "started",
              "authorized",
              "settled",
              "recovered"
            ]
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "status_code": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 100,
                "maximum": 599
              },
              {
                "type": "null"
              }
            ]
          },
          "secret_version": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "error_class": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "authority_revoked",
                  "event_integrity",
                  "unsafe_target",
                  "capacity",
                  "aborted",
                  "transient",
                  "rate_deferred",
                  "retry_budget_exhausted",
                  "http_terminal",
                  "key_unavailable"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "workspace_id",
          "delivery_id",
          "attempt_number",
          "phase",
          "recorded_at",
          "status_code",
          "secret_version",
          "error_class"
        ],
        "additionalProperties": false
      },
      "WebhookReplayInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_attempt": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "acknowledge_duplicate_effect": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "expected_attempt",
          "acknowledge_duplicate_effect"
        ],
        "additionalProperties": false
      },
      "SenderResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "sender": {
            "$ref": "#/components/schemas/SenderView"
          }
        },
        "required": [
          "request_id",
          "sender"
        ],
        "additionalProperties": false
      },
      "SenderVersionResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "sender": {
            "$ref": "#/components/schemas/SenderView"
          },
          "changed": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "sender",
          "changed"
        ],
        "additionalProperties": false
      },
      "DNSCheckResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "check": {
            "$ref": "#/components/schemas/DNSCheckView"
          }
        },
        "required": [
          "request_id",
          "check"
        ],
        "additionalProperties": false
      },
      "SenderIdentitiesPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SenderView"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      },
      "SenderVersionsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SenderVersionView"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      },
      "SenderDNSChecksPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DNSCheckView"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      },
      "InvitationRequestsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvitationRequestView"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "InvitationRequestHistoryPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvitationRequestHistory"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "MembersPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Membership"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "MemberChangesPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MembershipChange"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "EmailsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Email"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "EmailTemplatesPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailTemplateView"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "BrandsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandVersion"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "KeysPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Key"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "RevisionsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Revision"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "ContactsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Contact"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "CampaignsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "CampaignConfigurationsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampaignConfigurationSnapshot"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "RecipientAssessmentsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecipientAssessmentView"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "RecipientObservationsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecipientObservationView"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "AudienceSnapshotsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AudienceSnapshotMetadata"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "SegmentsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Segment"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "AuditPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Audit"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "DerivativesPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Email"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "EventsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventEnvelope"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "DispatchControlsResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "controls": {
            "type": "object",
            "properties": {
              "global": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/DispatchPolicy"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "providers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "$schema": "https://json-schema.org/draft/2020-12/schema",
                      "type": "string",
                      "enum": [
                        "ses",
                        "resend",
                        "sendgrid",
                        "mailgun"
                      ]
                    },
                    "policy": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/DispatchPolicy"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "provider",
                    "policy"
                  ],
                  "additionalProperties": false
                }
              },
              "workspace": {
                "$ref": "#/components/schemas/DispatchPolicy"
              },
              "dispatch_enabled": {
                "const": false
              },
              "notice": {
                "type": "string"
              }
            },
            "required": [
              "global",
              "providers",
              "workspace",
              "dispatch_enabled",
              "notice"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "controls"
        ],
        "additionalProperties": true
      },
      "RevisionListingResponse": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/RevisionsPage"
          },
          {
            "$ref": "#/components/schemas/CheckpointHistoryPage"
          }
        ]
      },
      "WebhookEndpointsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEndpoint"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          },
          "configuration": {
            "$ref": "#/components/schemas/WebhookConfiguration"
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count",
          "configuration"
        ],
        "additionalProperties": true
      },
      "WebhookEndpointResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "endpoint": {
            "$ref": "#/components/schemas/WebhookEndpoint"
          },
          "configuration": {
            "$ref": "#/components/schemas/WebhookConfiguration"
          }
        },
        "required": [
          "request_id",
          "endpoint",
          "configuration"
        ],
        "additionalProperties": true
      },
      "WebhookEndpointCommandResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "endpoint": {
            "$ref": "#/components/schemas/WebhookEndpoint"
          },
          "configuration": {
            "$ref": "#/components/schemas/WebhookConfiguration"
          },
          "secret": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "secret_available": {
            "type": "boolean"
          },
          "issued_secret_version": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "request_id",
          "endpoint",
          "configuration",
          "secret_available"
        ],
        "additionalProperties": true
      },
      "WebhookDeliveriesPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          },
          "configuration": {
            "$ref": "#/components/schemas/WebhookConfiguration"
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count",
          "configuration"
        ],
        "additionalProperties": true
      },
      "WebhookAttemptsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookAttempt"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          },
          "configuration": {
            "$ref": "#/components/schemas/WebhookConfiguration"
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count",
          "configuration"
        ],
        "additionalProperties": true
      },
      "WebhookDeliveryResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "delivery": {
            "$ref": "#/components/schemas/WebhookDelivery"
          },
          "configuration": {
            "$ref": "#/components/schemas/WebhookConfiguration"
          }
        },
        "required": [
          "request_id",
          "delivery",
          "configuration"
        ],
        "additionalProperties": true
      },
      "EventResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "event": {
            "$ref": "#/components/schemas/EventEnvelope"
          }
        },
        "required": [
          "request_id",
          "event"
        ],
        "additionalProperties": true
      },
      "EmailResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "email": {
            "$ref": "#/components/schemas/Email"
          }
        },
        "required": [
          "request_id",
          "email"
        ],
        "additionalProperties": true
      },
      "EmailPreviewManifest": {
        "type": "object",
        "properties": {
          "renderer": {
            "type": "string"
          },
          "sanitizer": {
            "type": "string"
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "string",
            "enum": [
              "1.0",
              "1.1",
              "1.2",
              "1.3",
              "1.4"
            ]
          },
          "brand": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "string",
            "maxLength": 80
          },
          "locale": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "fr-FR",
              "de-DE",
              "es-ES",
              "it-IT",
              "pt-BR",
              "nl-NL",
              "sv-SE",
              "da-DK",
              "no-NO",
              "fi-FI",
              "pl-PL",
              "cs-CZ",
              "tr-TR",
              "ja-JP",
              "ko-KR",
              "zh-CN",
              "zh-TW",
              "hi-IN",
              "ar-SA",
              "he-IL"
            ]
          },
          "mapping": {
            "type": "string"
          },
          "spec": {
            "$ref": "#/components/schemas/EmailSourceSpec"
          }
        },
        "required": [
          "renderer",
          "sanitizer",
          "schema",
          "brand",
          "locale",
          "mapping",
          "spec"
        ],
        "additionalProperties": true,
        "description": "Common facts returned by the current local compiler. Renderer-specific source/projection, tracking, asset, personalization and authored-money metadata remain additional properties. This manifest is not send approval or client-fidelity evidence."
      },
      "EmailPreviewArtifact": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "manifest": {
            "$ref": "#/components/schemas/EmailPreviewManifest"
          },
          "preview_html": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "html",
          "text",
          "hash",
          "manifest"
        ],
        "additionalProperties": false,
        "description": "Existing compiled preview output. html/text can be empty when projection is unavailable. preview_html is absent for ordinary structured output, a string for an available browser projection, or null for an unavailable projection. hash covers JSON.stringify(manifest), a newline, html, a newline and text as UTF-8 SHA-256; JSON Schema verifies its shape, not this digest relationship. Browser projection is separate from authored source and delivery output."
      },
      "EmailPreviewResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "artifact": {
            "$ref": "#/components/schemas/EmailPreviewArtifact"
          }
        },
        "required": [
          "request_id",
          "artifact"
        ],
        "additionalProperties": true
      },
      "EmailTemplateResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "template": {
            "$ref": "#/components/schemas/EmailTemplateView"
          }
        },
        "required": [
          "request_id",
          "template"
        ],
        "additionalProperties": true
      },
      "EmailSeriesPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSeriesSummary"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "ConversionProposalResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "proposal": {
            "$ref": "#/components/schemas/ConversionProposal"
          }
        },
        "required": [
          "request_id",
          "proposal"
        ],
        "additionalProperties": false
      },
      "ConversionAcceptResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "email": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "title": {
                "type": "string"
              },
              "doc_version": {
                "type": "integer",
                "minimum": 1
              },
              "spec": {
                "$ref": "#/components/schemas/EmailSpec"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "title",
              "doc_version",
              "spec",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "email"
        ],
        "additionalProperties": false
      },
      "LocaleSourceComparison": {
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid"
          },
          "actor_id": {
            "type": "string",
            "minLength": 1
          },
          "child_id": {
            "type": "string",
            "format": "uuid"
          },
          "parent": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "title": {
                "type": "string",
                "maxLength": 160
              },
              "doc_version": {
                "type": "integer",
                "minimum": 1
              },
              "spec": {
                "$ref": "#/components/schemas/EmailSourceSpec"
              }
            },
            "required": [
              "id",
              "title",
              "doc_version",
              "spec"
            ],
            "additionalProperties": false
          },
          "target": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "title": {
                "type": "string",
                "maxLength": 160
              },
              "doc_version": {
                "type": "integer",
                "minimum": 1
              },
              "spec": {
                "$ref": "#/components/schemas/EmailSourceSpec"
              }
            },
            "required": [
              "id",
              "title",
              "doc_version",
              "spec"
            ],
            "additionalProperties": false
          },
          "baseline": {
            "type": "object",
            "properties": {
              "revision_id": {
                "type": "string",
                "format": "uuid"
              },
              "revision_no": {
                "type": "integer",
                "minimum": 1
              },
              "source_doc_version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "spec": {
                "$ref": "#/components/schemas/EmailSourceSpec"
              }
            },
            "required": [
              "revision_id",
              "revision_no",
              "source_doc_version",
              "spec"
            ],
            "additionalProperties": false
          },
          "source_status": {
            "type": "string",
            "enum": [
              "current",
              "outdated",
              "unknown"
            ]
          }
        },
        "required": [
          "workspace_id",
          "actor_id",
          "child_id",
          "parent",
          "target",
          "baseline",
          "source_status"
        ],
        "additionalProperties": false,
        "description": "Same-workspace original source/current parent/saved target. Server enforces lineage, child/parent identity and actual versions beyond JSON Schema; the three escaped specs share an8MiB admission bound. No translation, review or approval is implied."
      },
      "LocaleSourceComparisonResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "comparison": {
            "$ref": "#/components/schemas/LocaleSourceComparison"
          }
        },
        "required": [
          "request_id",
          "comparison"
        ],
        "additionalProperties": true
      },
      "RevisionComparison": {
        "type": "object",
        "properties": {
          "workspace_id": {
            "type": "string",
            "format": "uuid"
          },
          "actor_id": {
            "type": "string",
            "minLength": 1
          },
          "email_id": {
            "type": "string",
            "format": "uuid"
          },
          "before": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "email_id": {
                "type": "string",
                "format": "uuid"
              },
              "revision_no": {
                "type": "integer",
                "minimum": 1
              },
              "source_doc_version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "raw_source_profile": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "legacy-stored-1",
                      "exact-utf8-1"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "spec": {
                "$ref": "#/components/schemas/EmailSourceSpec"
              }
            },
            "required": [
              "id",
              "email_id",
              "revision_no",
              "source_doc_version",
              "artifact_hash",
              "created_at",
              "raw_source_profile",
              "spec"
            ],
            "additionalProperties": false
          },
          "after": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "email_id": {
                "type": "string",
                "format": "uuid"
              },
              "revision_no": {
                "type": "integer",
                "minimum": 1
              },
              "source_doc_version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_hash": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              },
              "raw_source_profile": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "legacy-stored-1",
                      "exact-utf8-1"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "spec": {
                "$ref": "#/components/schemas/EmailSourceSpec"
              }
            },
            "required": [
              "id",
              "email_id",
              "revision_no",
              "source_doc_version",
              "artifact_hash",
              "created_at",
              "raw_source_profile",
              "spec"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "workspace_id",
          "actor_id",
          "email_id",
          "before",
          "after"
        ],
        "additionalProperties": false,
        "description": "Exact immutable same-email checkpoints under current read authority. Server enforces identity, the8MiB serialized admission bound and source refinements. Does not install, save or restore the editable draft."
      },
      "RevisionComparisonResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "comparison": {
            "$ref": "#/components/schemas/RevisionComparison"
          }
        },
        "required": [
          "request_id",
          "comparison"
        ],
        "additionalProperties": true
      },
      "LocaleReviewResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "review": {
            "$ref": "#/components/schemas/LocaleReviewRecord"
          }
        },
        "required": [
          "request_id",
          "review"
        ],
        "additionalProperties": true
      },
      "LocaleReviewHistoryResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "context": {
            "$ref": "#/components/schemas/LocaleReviewContext"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocaleReviewHistoryItem"
            }
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "context",
          "data",
          "total_count",
          "has_more",
          "next_cursor"
        ],
        "additionalProperties": true
      },
      "DerivationResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "email": {
            "$ref": "#/components/schemas/Email"
          },
          "revision": {
            "type": "object",
            "additionalProperties": true
          },
          "lineage": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "request_id",
          "email",
          "revision",
          "lineage"
        ],
        "additionalProperties": true
      },
      "InvitationCommandResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "request": {
            "$ref": "#/components/schemas/InvitationRequestView"
          },
          "changed": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "request",
          "changed"
        ],
        "additionalProperties": true
      },
      "InvitationRequestResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "request": {
            "$ref": "#/components/schemas/InvitationRequestView"
          }
        },
        "required": [
          "request_id",
          "request"
        ],
        "additionalProperties": true
      },
      "InvitationPlanningResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "context": {
            "$ref": "#/components/schemas/InvitationPlanningContext"
          }
        },
        "required": [
          "request_id",
          "context"
        ],
        "additionalProperties": true
      },
      "MembershipCommandResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "member": {
            "$ref": "#/components/schemas/Membership"
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MembershipChange"
            }
          }
        },
        "required": [
          "request_id",
          "member",
          "changes"
        ],
        "additionalProperties": true
      },
      "MembershipSummaryResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "summary": {
            "$ref": "#/components/schemas/MembershipSummary"
          }
        },
        "required": [
          "request_id",
          "summary"
        ],
        "additionalProperties": true
      },
      "BrandSourceResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/BrandSource"
          }
        },
        "required": [
          "request_id",
          "source"
        ],
        "additionalProperties": true
      },
      "BrandSourceDetailResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/BrandSource"
          },
          "chunks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandMemoryChunk"
            }
          }
        },
        "required": [
          "request_id",
          "source",
          "chunks"
        ],
        "additionalProperties": true
      },
      "BrandMemoryResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "context": {
            "$ref": "#/components/schemas/BrandMemoryContext"
          }
        },
        "required": [
          "request_id",
          "context"
        ],
        "additionalProperties": true
      },
      "BrandSourcesPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandSource"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "BrandResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "brand": {
            "$ref": "#/components/schemas/BrandVersion"
          }
        },
        "required": [
          "request_id",
          "brand"
        ],
        "additionalProperties": true
      },
      "CurrentBrandResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "brand": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BrandVersion"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "request_id",
          "brand"
        ],
        "additionalProperties": true
      },
      "OperationResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "operation": {
            "$ref": "#/components/schemas/Operation"
          }
        },
        "required": [
          "request_id",
          "operation"
        ],
        "additionalProperties": true
      },
      "RevisionResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "revision": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "request_id",
          "revision"
        ],
        "additionalProperties": true
      },
      "KeyResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "key": {
            "$ref": "#/components/schemas/Key"
          },
          "secret": {
            "type": "string",
            "pattern": "^lc_[0-9a-f]{64}$"
          },
          "secret_available": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "key",
          "secret_available"
        ],
        "additionalProperties": true
      },
      "GenericResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "request_id"
        ],
        "additionalProperties": true
      },
      "ContactImportInspectionResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "headers": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^\\S(?:[\\s\\S]*\\S)?(?![\\s\\S])"
            },
            "description": "Ordered parsed headers after the existing parser trims outer ECMAScript whitespace. Case, Unicode normalization and quoted interior newlines are preserved; uniqueness is exact. The parser limits each header to 100 UTF-16 code units; JSON Schema maxLength counts Unicode code points and is only a shape bound. The unchanged parser remains authoritative."
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "description": "Number of parsed data records, excluding the header and skipped empty lines. Quoted multiline values remain one record; header-only CSV returns 0. This is not a count of validated, eligible or imported contacts and establishes no consent."
          }
        },
        "required": [
          "request_id",
          "headers",
          "total"
        ],
        "additionalProperties": true,
        "description": "Existing read-only CSV inspection metadata. Inspection does not create contacts, prepare or confirm an import. Request admission and parser behavior are unchanged."
      },
      "CampaignResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "campaign": {
            "$ref": "#/components/schemas/Campaign"
          }
        },
        "required": [
          "request_id",
          "campaign"
        ],
        "additionalProperties": true
      },
      "WorkspacePreferencesResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "preferences": {
            "$ref": "#/components/schemas/WorkspacePreferences"
          }
        },
        "required": [
          "request_id",
          "preferences"
        ],
        "additionalProperties": true
      },
      "AiConnectionStateResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "connection": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "openrouter",
                      "openai",
                      "anthropic"
                    ]
                  },
                  "model": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "oauth",
                      "api_key"
                    ]
                  },
                  "key_last4": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{4}$"
                  },
                  "created_by": {
                    "type": "string"
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "id",
                  "provider",
                  "model",
                  "source",
                  "key_last4",
                  "created_by",
                  "created_at"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "openrouter",
                    "openai",
                    "anthropic"
                  ]
                },
                "label": {
                  "type": "string"
                },
                "default_model": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
                },
                "models": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "label",
                "default_model",
                "models"
              ],
              "additionalProperties": false
            }
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "configured",
          "connection",
          "providers",
          "request_id"
        ],
        "additionalProperties": false
      },
      "AiConnectionResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "connection": {
            "$ref": "#/components/schemas/AiConnection"
          }
        },
        "required": [
          "request_id",
          "connection"
        ],
        "additionalProperties": true
      },
      "AiDisconnectResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "disconnected": {
            "type": "boolean"
          }
        },
        "required": [
          "request_id",
          "disconnected"
        ],
        "additionalProperties": true
      },
      "EspStartInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "return_to": {
            "type": "string",
            "maxLength": 400
          },
          "mode": {
            "type": "string",
            "enum": [
              "popup",
              "redirect"
            ]
          }
        },
        "additionalProperties": false,
        "description": "Optional in-app path (/app/...) to return to, and whether the provider sign-in runs in a popup (default) or the current tab."
      },
      "EspConnectionsStateResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "can_manage": {
            "type": "boolean"
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "enum": [
                    "klaviyo",
                    "mailchimp",
                    "hubspot"
                  ]
                },
                "available": {
                  "type": "boolean"
                },
                "connection": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "klaviyo",
                            "mailchimp",
                            "hubspot"
                          ]
                        },
                        "account_label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "active",
                            "reconnect_required",
                            "disconnected"
                          ]
                        },
                        "connected_at": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "connected_by": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "id",
                        "provider",
                        "account_label",
                        "state",
                        "connected_at",
                        "connected_by"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "provider",
                "available",
                "connection"
              ],
              "additionalProperties": false
            }
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "enabled",
          "providers",
          "request_id"
        ],
        "additionalProperties": false
      },
      "EspStartResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "authorize_url": {
            "type": "string",
            "format": "uri"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "request_id",
          "authorize_url",
          "expires_at"
        ],
        "additionalProperties": true
      },
      "EspDisconnectResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "connection": {
            "anyOf": [
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "provider": {
                    "type": "string",
                    "enum": [
                      "klaviyo",
                      "mailchimp",
                      "hubspot"
                    ]
                  },
                  "account_label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "active",
                      "reconnect_required",
                      "disconnected"
                    ]
                  },
                  "connected_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "connected_by": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "id",
                  "provider",
                  "account_label",
                  "state",
                  "connected_at",
                  "connected_by"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "provider_revoked": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "request_id",
          "connection",
          "provider_revoked"
        ],
        "additionalProperties": true
      },
      "OpenRouterStartResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "authorize_url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://openrouter\\.ai/auth\\?"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "request_id",
          "authorize_url",
          "expires_at"
        ],
        "additionalProperties": true
      },
      "WorkspaceTimezoneResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "preferences": {
            "$ref": "#/components/schemas/WorkspacePreferences"
          },
          "changed": {
            "type": "boolean"
          },
          "notice": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "preferences",
          "changed",
          "notice"
        ],
        "additionalProperties": true
      },
      "CampaignCalendarResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CalendarEntry"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          },
          "month": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "string",
            "pattern": "^(?!0000)\\d{4}-(?:0[1-9]|1[0-2])$"
          },
          "time_zone": {
            "type": "string"
          },
          "timezone_version": {
            "type": "integer",
            "minimum": 1
          },
          "notice": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count",
          "month",
          "time_zone",
          "timezone_version",
          "notice"
        ],
        "additionalProperties": true
      },
      "SubmissionLedgerResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "ledger": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "campaign_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "configuration_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "configuration_version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "configuration_digest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "revision_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "artifact_hash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "snapshot_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "snapshot_digest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "status": {
                "type": "string",
                "enum": [
                  "queued",
                  "running",
                  "completed",
                  "cancelled",
                  "failed"
                ]
              },
              "total_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "processed_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "pending_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "skipped_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "cancelled_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "accepted_count": {
                "type": "number",
                "const": 0
              },
              "uncertain_count": {
                "type": "number",
                "const": 0
              },
              "attempt_count": {
                "type": "number",
                "const": 0
              },
              "created_by": {
                "type": "string",
                "minLength": 1
              },
              "created_api_key_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "pattern": "^[0-9a-f-]+$"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "completed_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "authorization_issued": {
                "type": "boolean",
                "const": false
              },
              "dispatch_enabled": {
                "type": "boolean",
                "const": false
              }
            },
            "required": [
              "id",
              "campaign_id",
              "configuration_id",
              "configuration_version",
              "configuration_digest",
              "revision_id",
              "artifact_hash",
              "snapshot_id",
              "snapshot_digest",
              "status",
              "total_count",
              "processed_count",
              "pending_count",
              "skipped_count",
              "cancelled_count",
              "accepted_count",
              "uncertain_count",
              "attempt_count",
              "created_by",
              "created_api_key_id",
              "created_at",
              "updated_at",
              "completed_at",
              "authorization_issued",
              "dispatch_enabled"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "ledger"
        ],
        "additionalProperties": false
      },
      "DeliveryResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "delivery": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "ledger_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "configuration_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "delivery_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "contact_id": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "pattern": "^[0-9a-f-]+$"
                  }
                ]
              },
              "captured_locale": {
                "type": "string",
                "maxLength": 35,
                "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
              },
              "captured_reason": {
                "type": "string",
                "enum": [
                  "ELIGIBLE",
                  "SUPPRESSED",
                  "CONTACT_DELETED",
                  "CONSENT_NOT_CONFIRMED"
                ]
              },
              "captured_consent_version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647
              },
              "logical_send_key": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "submission_state": {
                "type": "string",
                "enum": [
                  "pending",
                  "skipped",
                  "cancelled"
                ]
              },
              "outcome": {
                "type": "string",
                "const": "unknown"
              },
              "authorization_issued": {
                "type": "boolean",
                "const": false
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "ledger_id",
              "configuration_id",
              "delivery_id",
              "contact_id",
              "captured_locale",
              "captured_reason",
              "captured_consent_version",
              "logical_send_key",
              "submission_state",
              "outcome",
              "authorization_issued",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "delivery"
        ],
        "additionalProperties": false
      },
      "SubmissionLedgersPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "campaign_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "configuration_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "configuration_version": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "configuration_digest": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "revision_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "artifact_hash": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "snapshot_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "snapshot_digest": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "queued",
                    "running",
                    "completed",
                    "cancelled",
                    "failed"
                  ]
                },
                "total_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "processed_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "pending_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "skipped_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "cancelled_count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "accepted_count": {
                  "type": "number",
                  "const": 0
                },
                "uncertain_count": {
                  "type": "number",
                  "const": 0
                },
                "attempt_count": {
                  "type": "number",
                  "const": 0
                },
                "created_by": {
                  "type": "string",
                  "minLength": 1
                },
                "created_api_key_id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "allOf": [
                        {
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "pattern": "^[0-9a-f-]+$"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "completed_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "authorization_issued": {
                  "type": "boolean",
                  "const": false
                },
                "dispatch_enabled": {
                  "type": "boolean",
                  "const": false
                }
              },
              "required": [
                "id",
                "campaign_id",
                "configuration_id",
                "configuration_version",
                "configuration_digest",
                "revision_id",
                "artifact_hash",
                "snapshot_id",
                "snapshot_digest",
                "status",
                "total_count",
                "processed_count",
                "pending_count",
                "skipped_count",
                "cancelled_count",
                "accepted_count",
                "uncertain_count",
                "attempt_count",
                "created_by",
                "created_api_key_id",
                "created_at",
                "updated_at",
                "completed_at",
                "authorization_issued",
                "dispatch_enabled"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      },
      "StagedRecipientsPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "ledger_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "configuration_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "delivery_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "contact_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "captured_locale": {
                  "type": "string",
                  "maxLength": 35,
                  "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
                },
                "captured_reason": {
                  "type": "string",
                  "enum": [
                    "ELIGIBLE",
                    "SUPPRESSED",
                    "CONTACT_DELETED",
                    "CONSENT_NOT_CONFIRMED"
                  ]
                },
                "captured_consent_version": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "logical_send_key": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "submission_state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "skipped",
                    "cancelled"
                  ]
                },
                "outcome": {
                  "type": "string",
                  "const": "unknown"
                },
                "authorization_issued": {
                  "type": "boolean",
                  "const": false
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                }
              },
              "required": [
                "id",
                "ledger_id",
                "configuration_id",
                "delivery_id",
                "contact_id",
                "captured_locale",
                "captured_reason",
                "captured_consent_version",
                "logical_send_key",
                "submission_state",
                "outcome",
                "authorization_issued",
                "created_at",
                "updated_at"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      },
      "DeliveryHistoryPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "delivery_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "submission_state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "skipped",
                    "cancelled"
                  ]
                },
                "outcome": {
                  "type": "string",
                  "const": "unknown"
                },
                "reason": {
                  "type": "string",
                  "enum": [
                    "ELIGIBLE",
                    "SUPPRESSED",
                    "CONTACT_DELETED",
                    "CONSENT_NOT_CONFIRMED",
                    "STAGING_CANCELLED"
                  ]
                },
                "recorded_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                }
              },
              "required": [
                "id",
                "delivery_id",
                "submission_state",
                "outcome",
                "reason",
                "recorded_at"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      },
      "DeliveryAttemptsPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "delivery_id": {
                  "type": "string",
                  "allOf": [
                    {
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "pattern": "^[0-9a-f-]+$"
                    }
                  ]
                },
                "attempt_no": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                },
                "submission_state": {
                  "type": "string",
                  "enum": [
                    "submitting",
                    "accepted",
                    "uncertain",
                    "failed_permanent"
                  ]
                },
                "request_started_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "accepted_at": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "error_class": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "transport",
                        "provider_rejected",
                        "unknown"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "delivery_id",
                "attempt_no",
                "submission_state",
                "request_started_at",
                "accepted_at",
                "error_class"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      },
      "RecipientAssessmentResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "assessment": {
            "$ref": "#/components/schemas/RecipientAssessmentView"
          }
        },
        "required": [
          "request_id",
          "assessment"
        ],
        "additionalProperties": true
      },
      "CampaignDetailResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "campaign": {
            "$ref": "#/components/schemas/CampaignConfigurationView"
          }
        },
        "required": [
          "request_id",
          "campaign"
        ],
        "additionalProperties": true
      },
      "CampaignConfigurationResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "campaign": {
            "$ref": "#/components/schemas/CampaignConfigurationView"
          },
          "changed": {
            "type": "boolean"
          },
          "notice": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "campaign",
          "changed",
          "notice"
        ],
        "additionalProperties": true
      },
      "AudienceSnapshotMetadataResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "snapshot": {
            "$ref": "#/components/schemas/AudienceSnapshotMetadata"
          }
        },
        "required": [
          "request_id",
          "snapshot"
        ],
        "additionalProperties": true
      },
      "Health": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "status": {
            "const": "ok"
          },
          "release": {
            "const": "development"
          },
          "dispatch_enabled": {
            "const": false
          }
        },
        "required": [
          "request_id",
          "status",
          "release",
          "dispatch_enabled"
        ],
        "additionalProperties": true
      },
      "CreationOperationsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreationSummary"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "CreationAttemptsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreationAttempt"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "CreationActivityReportResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "report": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "schema_version": {
                "type": "string",
                "const": "creation-activity-v1"
              },
              "type": {
                "type": "string",
                "enum": [
                  "brand.extract",
                  "email.generate"
                ]
              },
              "created_after": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "created_before": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "time_zone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "generated_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "counts": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "queued": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "running": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "succeeded": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "failed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "cancelled": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "cancel_requested": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "other": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "total",
                  "queued",
                  "running",
                  "succeeded",
                  "failed",
                  "cancelled",
                  "cancel_requested",
                  "other"
                ],
                "additionalProperties": false
              },
              "daily": {
                "maxItems": 33,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "total": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "queued": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "running": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "succeeded": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "failed": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "cancelled": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "cancel_requested": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "other": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "total",
                        "queued",
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled",
                        "cancel_requested",
                        "other"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "date",
                    "counts"
                  ],
                  "additionalProperties": false
                }
              },
              "completion_time": {
                "type": "object",
                "properties": {
                  "sample_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "missing_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "median_ms": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "p90_ms": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "sample_count",
                  "missing_count",
                  "median_ms",
                  "p90_ms"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "schema_version",
              "type",
              "created_after",
              "created_before",
              "time_zone",
              "generated_at",
              "counts",
              "daily",
              "completion_time"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "report"
        ],
        "additionalProperties": true
      },
      "EngagementExportWindow": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "occurred_after": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "occurred_before": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "time_zone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "occurred_after",
          "occurred_before",
          "time_zone"
        ],
        "additionalProperties": false,
        "description": "Canonical UTC milliseconds, start inclusive/end exclusive, at most366 days within2000–2100; named IANA grouping timezone. Server refinements enforce canonicality/bounds beyond JSON Schema."
      },
      "EngagementExportCapture": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "engagement-observations-export-v1"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "actor_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "occurred_after": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "occurred_before": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "time_zone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "generated_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "counts": {
            "type": "object",
            "properties": {
              "all": {
                "type": "object",
                "properties": {
                  "total_events": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unique_contacts": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "total_events",
                  "unique_contacts"
                ],
                "additionalProperties": false
              },
              "delivered": {
                "type": "object",
                "properties": {
                  "total_events": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unique_contacts": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "total_events",
                  "unique_contacts"
                ],
                "additionalProperties": false
              },
              "opened": {
                "type": "object",
                "properties": {
                  "total_events": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unique_contacts": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "total_events",
                  "unique_contacts"
                ],
                "additionalProperties": false
              },
              "clicked": {
                "type": "object",
                "properties": {
                  "total_events": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unique_contacts": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "total_events",
                  "unique_contacts"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "all",
              "delivered",
              "opened",
              "clicked"
            ],
            "additionalProperties": false
          },
          "daily": {
            "maxItems": 368,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "counts": {
                  "type": "object",
                  "properties": {
                    "all": {
                      "type": "object",
                      "properties": {
                        "total_events": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "unique_contacts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "total_events",
                        "unique_contacts"
                      ],
                      "additionalProperties": false
                    },
                    "delivered": {
                      "type": "object",
                      "properties": {
                        "total_events": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "unique_contacts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "total_events",
                        "unique_contacts"
                      ],
                      "additionalProperties": false
                    },
                    "opened": {
                      "type": "object",
                      "properties": {
                        "total_events": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "unique_contacts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "total_events",
                        "unique_contacts"
                      ],
                      "additionalProperties": false
                    },
                    "clicked": {
                      "type": "object",
                      "properties": {
                        "total_events": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "unique_contacts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "total_events",
                        "unique_contacts"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "all",
                    "delivered",
                    "opened",
                    "clicked"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "date",
                "counts"
              ],
              "additionalProperties": false
            }
          },
          "recording_delay": {
            "type": "object",
            "properties": {
              "sample_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "negative_delay_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "over_60s_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "recorded_after_window_count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "median_ms": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "p95_ms": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "sample_count",
              "negative_delay_count",
              "over_60s_count",
              "recorded_after_window_count",
              "median_ms",
              "p95_ms"
            ],
            "additionalProperties": false
          },
          "coverage": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "const": "recorded_engagement_events"
              },
              "ingestion": {
                "type": "string",
                "const": "not_connected"
              },
              "verification": {
                "type": "string",
                "const": "unqualified"
              },
              "campaign_attribution": {
                "type": "string",
                "const": "unavailable"
              },
              "bot_filtering": {
                "type": "string",
                "const": "unavailable"
              },
              "device_client_geo": {
                "type": "string",
                "const": "unavailable"
              },
              "opens": {
                "type": "string",
                "const": "unreliable"
              }
            },
            "required": [
              "source",
              "ingestion",
              "verification",
              "campaign_attribution",
              "bot_filtering",
              "device_client_geo",
              "opens"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "schema_version",
          "workspace_id",
          "actor_id",
          "occurred_after",
          "occurred_before",
          "time_zone",
          "generated_at",
          "counts",
          "daily",
          "recording_delay",
          "coverage"
        ],
        "additionalProperties": false
      },
      "EngagementExportJob": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspace_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "actor_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "succeeded",
              "cancelled"
            ]
          },
          "input": {
            "type": "object",
            "properties": {
              "occurred_after": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "occurred_before": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "time_zone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "required": [
              "occurred_after",
              "occurred_before",
              "time_zone"
            ],
            "additionalProperties": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "capture": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "schema_version": {
                    "type": "string",
                    "const": "engagement-observations-export-v1"
                  },
                  "generated_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "counts": {
                    "type": "object",
                    "properties": {
                      "all": {
                        "type": "object",
                        "properties": {
                          "total_events": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unique_contacts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "total_events",
                          "unique_contacts"
                        ],
                        "additionalProperties": false
                      },
                      "delivered": {
                        "type": "object",
                        "properties": {
                          "total_events": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unique_contacts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "total_events",
                          "unique_contacts"
                        ],
                        "additionalProperties": false
                      },
                      "opened": {
                        "type": "object",
                        "properties": {
                          "total_events": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unique_contacts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "total_events",
                          "unique_contacts"
                        ],
                        "additionalProperties": false
                      },
                      "clicked": {
                        "type": "object",
                        "properties": {
                          "total_events": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unique_contacts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "total_events",
                          "unique_contacts"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "all",
                      "delivered",
                      "opened",
                      "clicked"
                    ],
                    "additionalProperties": false
                  },
                  "recording_delay": {
                    "type": "object",
                    "properties": {
                      "sample_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "negative_delay_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "over_60s_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "recorded_after_window_count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "median_ms": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "p95_ms": {
                        "anyOf": [
                          {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "sample_count",
                      "negative_delay_count",
                      "over_60s_count",
                      "recorded_after_window_count",
                      "median_ms",
                      "p95_ms"
                    ],
                    "additionalProperties": false
                  },
                  "coverage": {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "const": "recorded_engagement_events"
                      },
                      "ingestion": {
                        "type": "string",
                        "const": "not_connected"
                      },
                      "verification": {
                        "type": "string",
                        "const": "unqualified"
                      },
                      "campaign_attribution": {
                        "type": "string",
                        "const": "unavailable"
                      },
                      "bot_filtering": {
                        "type": "string",
                        "const": "unavailable"
                      },
                      "device_client_geo": {
                        "type": "string",
                        "const": "unavailable"
                      },
                      "opens": {
                        "type": "string",
                        "const": "unreliable"
                      }
                    },
                    "required": [
                      "source",
                      "ingestion",
                      "verification",
                      "campaign_attribution",
                      "bot_filtering",
                      "device_client_geo",
                      "opens"
                    ],
                    "additionalProperties": false
                  },
                  "daily_rows": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 368
                  },
                  "csv_sha256": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "csv_bytes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2097152
                  }
                },
                "required": [
                  "schema_version",
                  "generated_at",
                  "counts",
                  "recording_delay",
                  "coverage",
                  "daily_rows",
                  "csv_sha256",
                  "csv_bytes"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "workspace_id",
          "actor_id",
          "state",
          "input",
          "created_at",
          "completed_at",
          "capture"
        ],
        "additionalProperties": false,
        "description": "Request-driven queued/succeeded/cancelled job. State/completion/capture reconciliation is server authoritative. No unattended worker. Actor is authenticated Principal.user, including the API-key namespace."
      },
      "EngagementExportJobResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "job": {
            "$ref": "#/components/schemas/EngagementExportJob"
          }
        },
        "required": [
          "request_id",
          "job"
        ],
        "additionalProperties": true
      },
      "EngagementExportJobsPage": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EngagementExportJob"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": true
      },
      "ObservedEngagementReportResponse": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "report": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "schema_version": {
                "type": "string",
                "const": "engagement-observations-v1"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "actor_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "occurred_after": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "occurred_before": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "time_zone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "generated_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "counts": {
                "type": "object",
                "properties": {
                  "all": {
                    "type": "object",
                    "properties": {
                      "total_events": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unique_contacts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "total_events",
                      "unique_contacts"
                    ],
                    "additionalProperties": false
                  },
                  "delivered": {
                    "type": "object",
                    "properties": {
                      "total_events": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unique_contacts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "total_events",
                      "unique_contacts"
                    ],
                    "additionalProperties": false
                  },
                  "opened": {
                    "type": "object",
                    "properties": {
                      "total_events": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unique_contacts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "total_events",
                      "unique_contacts"
                    ],
                    "additionalProperties": false
                  },
                  "clicked": {
                    "type": "object",
                    "properties": {
                      "total_events": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unique_contacts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "total_events",
                      "unique_contacts"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "all",
                  "delivered",
                  "opened",
                  "clicked"
                ],
                "additionalProperties": false
              },
              "daily": {
                "maxItems": 33,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "all": {
                          "type": "object",
                          "properties": {
                            "total_events": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unique_contacts": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "total_events",
                            "unique_contacts"
                          ],
                          "additionalProperties": false
                        },
                        "delivered": {
                          "type": "object",
                          "properties": {
                            "total_events": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unique_contacts": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "total_events",
                            "unique_contacts"
                          ],
                          "additionalProperties": false
                        },
                        "opened": {
                          "type": "object",
                          "properties": {
                            "total_events": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unique_contacts": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "total_events",
                            "unique_contacts"
                          ],
                          "additionalProperties": false
                        },
                        "clicked": {
                          "type": "object",
                          "properties": {
                            "total_events": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "unique_contacts": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "total_events",
                            "unique_contacts"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "all",
                        "delivered",
                        "opened",
                        "clicked"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "date",
                    "counts"
                  ],
                  "additionalProperties": false
                }
              },
              "recording_delay": {
                "type": "object",
                "properties": {
                  "sample_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "negative_delay_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "over_60s_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "recorded_after_window_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "median_ms": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "p95_ms": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "sample_count",
                  "negative_delay_count",
                  "over_60s_count",
                  "recorded_after_window_count",
                  "median_ms",
                  "p95_ms"
                ],
                "additionalProperties": false
              },
              "coverage": {
                "type": "object",
                "properties": {
                  "source": {
                    "type": "string",
                    "const": "recorded_engagement_events"
                  },
                  "ingestion": {
                    "type": "string",
                    "const": "not_connected"
                  },
                  "verification": {
                    "type": "string",
                    "const": "unqualified"
                  },
                  "campaign_attribution": {
                    "type": "string",
                    "const": "unavailable"
                  },
                  "bot_filtering": {
                    "type": "string",
                    "const": "unavailable"
                  },
                  "device_client_geo": {
                    "type": "string",
                    "const": "unavailable"
                  },
                  "opens": {
                    "type": "string",
                    "const": "unreliable"
                  }
                },
                "required": [
                  "source",
                  "ingestion",
                  "verification",
                  "campaign_attribution",
                  "bot_filtering",
                  "device_client_geo",
                  "opens"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "schema_version",
              "workspace_id",
              "actor_id",
              "occurred_after",
              "occurred_before",
              "time_zone",
              "generated_at",
              "counts",
              "daily",
              "recording_delay",
              "coverage"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "request_id",
          "report"
        ],
        "additionalProperties": true
      },
      "BillingCheckoutInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "selection": {
            "type": "object",
            "properties": {
              "plan_id": {
                "type": "string",
                "enum": [
                  "premium",
                  "business"
                ]
              },
              "interval": {
                "type": "string",
                "enum": [
                  "monthly",
                  "annual"
                ]
              },
              "additional_seats": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              }
            },
            "required": [
              "plan_id",
              "interval",
              "additional_seats"
            ],
            "additionalProperties": false
          },
          "catalogue_version": {
            "type": "string",
            "const": "lettercape-inr-v1"
          },
          "expected_billing_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "acknowledgment": {
            "type": "object",
            "properties": {
              "amount_paise": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "const": "INR"
              },
              "interval": {
                "type": "string",
                "enum": [
                  "monthly",
                  "annual"
                ]
              }
            },
            "required": [
              "amount_paise",
              "currency",
              "interval"
            ],
            "additionalProperties": false
          },
          "customer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "format": "email",
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "phone": {
                "type": "string",
                "pattern": "^[0-9]{10}$"
              }
            },
            "required": [
              "name",
              "email",
              "phone"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "selection",
          "catalogue_version",
          "expected_billing_version",
          "acknowledgment",
          "customer"
        ],
        "additionalProperties": false
      },
      "BillingChangePlanInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_billing_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "paid_term_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "effective_at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "selection": {
            "type": "object",
            "properties": {
              "plan_id": {
                "type": "string",
                "enum": [
                  "premium",
                  "business"
                ]
              },
              "interval": {
                "type": "string",
                "enum": [
                  "monthly",
                  "annual"
                ]
              },
              "additional_seats": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              }
            },
            "required": [
              "plan_id",
              "interval",
              "additional_seats"
            ],
            "additionalProperties": false
          },
          "catalogue_version": {
            "type": "string",
            "const": "lettercape-inr-v1"
          },
          "acknowledgment": {
            "type": "object",
            "properties": {
              "amount_paise": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "type": "string",
                "const": "INR"
              },
              "interval": {
                "type": "string",
                "enum": [
                  "monthly",
                  "annual"
                ]
              }
            },
            "required": [
              "amount_paise",
              "currency",
              "interval"
            ],
            "additionalProperties": false
          },
          "replacement_consent": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "expected_billing_version",
          "paid_term_id",
          "effective_at",
          "selection",
          "catalogue_version",
          "acknowledgment",
          "replacement_consent"
        ],
        "additionalProperties": false
      },
      "BillingCancelInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "expected_billing_version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "acknowledgment": {
                "type": "object",
                "properties": {
                  "amount_paise": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string",
                    "const": "INR"
                  },
                  "interval": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "annual"
                    ]
                  }
                },
                "required": [
                  "amount_paise",
                  "currency",
                  "interval"
                ],
                "additionalProperties": false
              },
              "confirm_cancellation": {
                "type": "boolean",
                "const": true
              },
              "paid_term_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            "required": [
              "expected_billing_version",
              "acknowledgment",
              "confirm_cancellation",
              "paid_term_id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expected_billing_version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "acknowledgment": {
                "type": "object",
                "properties": {
                  "amount_paise": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string",
                    "const": "INR"
                  },
                  "interval": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "annual"
                    ]
                  }
                },
                "required": [
                  "amount_paise",
                  "currency",
                  "interval"
                ],
                "additionalProperties": false
              },
              "confirm_cancellation": {
                "type": "boolean",
                "const": true
              },
              "subscription_id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            "required": [
              "expected_billing_version",
              "acknowledgment",
              "confirm_cancellation",
              "subscription_id"
            ],
            "additionalProperties": false
          }
        ]
      },
      "BillingRefundInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "expected_billing_version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "paid_term_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "amount_paise": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "type": "string",
            "const": "INR"
          },
          "confirm_full_refund_cancellation": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "expected_billing_version",
          "paid_term_id",
          "amount_paise",
          "currency",
          "confirm_full_refund_cancellation"
        ],
        "additionalProperties": false
      },
      "BillingCommandResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "command": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "kind": {
                "type": "string",
                "enum": [
                  "checkout",
                  "change_plan",
                  "cancel",
                  "refund"
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "queued",
                  "running",
                  "pending",
                  "reconciliation_required",
                  "succeeded",
                  "failed"
                ]
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "environment": {
                "type": "string",
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "catalogue": {
                "type": "object",
                "properties": {
                  "plan_id": {
                    "type": "string",
                    "enum": [
                      "premium",
                      "business"
                    ]
                  },
                  "interval": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "annual"
                    ]
                  },
                  "additional_seats": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "version": {
                    "type": "string",
                    "const": "lettercape-inr-v1"
                  },
                  "currency": {
                    "type": "string",
                    "const": "INR"
                  },
                  "amount_paise": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "editing_seats": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100
                  },
                  "monthly_units": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unit_class": {
                    "type": "string",
                    "const": "draft-equivalent-v1"
                  }
                },
                "required": [
                  "plan_id",
                  "interval",
                  "additional_seats",
                  "version",
                  "currency",
                  "amount_paise",
                  "editing_seats",
                  "monthly_units",
                  "unit_class"
                ],
                "additionalProperties": false
              },
              "subscription_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "created_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "updated_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "error_code": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "kind",
              "state",
              "version",
              "environment",
              "catalogue",
              "subscription_id",
              "created_at",
              "updated_at",
              "error_code"
            ],
            "additionalProperties": false
          },
          "lifecycle": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "requested_catalogue": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "plan_id": {
                            "type": "string",
                            "enum": [
                              "premium",
                              "business"
                            ]
                          },
                          "interval": {
                            "type": "string",
                            "enum": [
                              "monthly",
                              "annual"
                            ]
                          },
                          "additional_seats": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "version": {
                            "type": "string",
                            "const": "lettercape-inr-v1"
                          },
                          "currency": {
                            "type": "string",
                            "const": "INR"
                          },
                          "amount_paise": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "editing_seats": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 100
                          },
                          "monthly_units": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "unit_class": {
                            "type": "string",
                            "const": "draft-equivalent-v1"
                          }
                        },
                        "required": [
                          "plan_id",
                          "interval",
                          "additional_seats",
                          "version",
                          "currency",
                          "amount_paise",
                          "editing_seats",
                          "monthly_units",
                          "unit_class"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effective_at": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "phase": {
                    "type": "string",
                    "enum": [
                      "refund",
                      "cancel",
                      "complete"
                    ]
                  },
                  "replacement_required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "requested_catalogue",
                  "effective_at",
                  "phase",
                  "replacement_required"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "command",
          "lifecycle",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BillingSummaryResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "summary": {
            "type": "object",
            "properties": {
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "environment": {
                "type": "string",
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "unpaid",
                  "checkout_pending",
                  "reconciliation_required",
                  "paid",
                  "expired",
                  "refunded"
                ]
              },
              "catalogue": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "plan_id": {
                        "type": "string",
                        "enum": [
                          "premium",
                          "business"
                        ]
                      },
                      "interval": {
                        "type": "string",
                        "enum": [
                          "monthly",
                          "annual"
                        ]
                      },
                      "additional_seats": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "version": {
                        "type": "string",
                        "const": "lettercape-inr-v1"
                      },
                      "currency": {
                        "type": "string",
                        "const": "INR"
                      },
                      "amount_paise": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "editing_seats": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100
                      },
                      "monthly_units": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unit_class": {
                        "type": "string",
                        "const": "draft-equivalent-v1"
                      }
                    },
                    "required": [
                      "plan_id",
                      "interval",
                      "additional_seats",
                      "version",
                      "currency",
                      "amount_paise",
                      "editing_seats",
                      "monthly_units",
                      "unit_class"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paid_until": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "read_export_until": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cancel_at_period_end": {
                "type": "boolean"
              },
              "editing_seats": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "used_seats": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "current_window": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "start": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      "end": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      },
                      "allowance": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "entitlement_version": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 2147483647
                      }
                    },
                    "required": [
                      "id",
                      "start",
                      "end",
                      "allowance",
                      "entitlement_version"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reserved_units": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "consumed_units": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "warning": {
                "type": "boolean"
              },
              "hold_code": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "version",
              "environment",
              "state",
              "catalogue",
              "paid_until",
              "read_export_until",
              "cancel_at_period_end",
              "editing_seats",
              "used_seats",
              "current_window",
              "reserved_units",
              "consumed_units",
              "warning",
              "hold_code"
            ],
            "additionalProperties": false
          },
          "actions": {
            "type": "object",
            "properties": {
              "subscription_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paid_term_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "renewal_catalogue": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "plan_id": {
                        "type": "string",
                        "enum": [
                          "premium",
                          "business"
                        ]
                      },
                      "interval": {
                        "type": "string",
                        "enum": [
                          "monthly",
                          "annual"
                        ]
                      },
                      "additional_seats": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "version": {
                        "type": "string",
                        "const": "lettercape-inr-v1"
                      },
                      "currency": {
                        "type": "string",
                        "const": "INR"
                      },
                      "amount_paise": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "editing_seats": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100
                      },
                      "monthly_units": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unit_class": {
                        "type": "string",
                        "const": "draft-equivalent-v1"
                      }
                    },
                    "required": [
                      "plan_id",
                      "interval",
                      "additional_seats",
                      "version",
                      "currency",
                      "amount_paise",
                      "editing_seats",
                      "monthly_units",
                      "unit_class"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "renewal_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cancellation_confirmed": {
                "type": "boolean"
              },
              "change_plan_eligible": {
                "type": "boolean"
              },
              "refund_eligible": {
                "type": "boolean"
              },
              "refund_deadline": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "refund_amount_paise": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "subscription_id",
              "paid_term_id",
              "renewal_catalogue",
              "renewal_at",
              "cancellation_confirmed",
              "change_plan_eligible",
              "refund_eligible",
              "refund_deadline",
              "refund_amount_paise"
            ],
            "additionalProperties": false
          },
          "mfa_mode": {
            "type": "string",
            "enum": [
              "local-development",
              "verified-session-required"
            ]
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "summary",
          "actions",
          "mfa_mode",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BillingCatalogueResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "catalogue": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string",
                "const": "lettercape-inr-v1"
              },
              "environment": {
                "type": "string",
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "checkout_available": {
                "type": "boolean"
              },
              "plans": {
                "minItems": 4,
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "plan_id": {
                      "type": "string",
                      "enum": [
                        "premium",
                        "business"
                      ]
                    },
                    "interval": {
                      "type": "string",
                      "enum": [
                        "monthly",
                        "annual"
                      ]
                    },
                    "additional_seats": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "version": {
                      "type": "string",
                      "const": "lettercape-inr-v1"
                    },
                    "currency": {
                      "type": "string",
                      "const": "INR"
                    },
                    "amount_paise": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "editing_seats": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 100
                    },
                    "monthly_units": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "unit_class": {
                      "type": "string",
                      "const": "draft-equivalent-v1"
                    }
                  },
                  "required": [
                    "plan_id",
                    "interval",
                    "additional_seats",
                    "version",
                    "currency",
                    "amount_paise",
                    "editing_seats",
                    "monthly_units",
                    "unit_class"
                  ],
                  "additionalProperties": false
                }
              },
              "additional_seat_prices": {
                "type": "object",
                "properties": {
                  "monthly": {
                    "type": "number",
                    "const": 99900
                  },
                  "annual": {
                    "type": "number",
                    "const": 999000
                  }
                },
                "required": [
                  "monthly",
                  "annual"
                ],
                "additionalProperties": false
              },
              "maximum_editing_seats": {
                "type": "number",
                "const": 100
              }
            },
            "required": [
              "version",
              "environment",
              "checkout_available",
              "plans",
              "additional_seat_prices",
              "maximum_editing_seats"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "catalogue",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BillingSessionResponse": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "session": {
            "type": "object",
            "properties": {
              "checkout_session_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expires_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "checkout_session_id",
              "expires_at"
            ],
            "additionalProperties": false
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "session",
          "request_id"
        ],
        "additionalProperties": false
      },
      "BillingCommandsPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "checkout",
                    "change_plan",
                    "cancel",
                    "refund"
                  ]
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "queued",
                    "running",
                    "pending",
                    "reconciliation_required",
                    "succeeded",
                    "failed"
                  ]
                },
                "version": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2147483647
                },
                "environment": {
                  "type": "string",
                  "enum": [
                    "sandbox",
                    "production"
                  ]
                },
                "catalogue": {
                  "type": "object",
                  "properties": {
                    "plan_id": {
                      "type": "string",
                      "enum": [
                        "premium",
                        "business"
                      ]
                    },
                    "interval": {
                      "type": "string",
                      "enum": [
                        "monthly",
                        "annual"
                      ]
                    },
                    "additional_seats": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "version": {
                      "type": "string",
                      "const": "lettercape-inr-v1"
                    },
                    "currency": {
                      "type": "string",
                      "const": "INR"
                    },
                    "amount_paise": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "editing_seats": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 100
                    },
                    "monthly_units": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "unit_class": {
                      "type": "string",
                      "const": "draft-equivalent-v1"
                    }
                  },
                  "required": [
                    "plan_id",
                    "interval",
                    "additional_seats",
                    "version",
                    "currency",
                    "amount_paise",
                    "editing_seats",
                    "monthly_units",
                    "unit_class"
                  ],
                  "additionalProperties": false
                },
                "subscription_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "error_code": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "kind",
                "state",
                "version",
                "environment",
                "catalogue",
                "subscription_id",
                "created_at",
                "updated_at",
                "error_code"
              ],
              "additionalProperties": false
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ]
          },
          "total_count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "request_id",
          "data",
          "has_more",
          "next_cursor",
          "total_count"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "lc_<256-bit hex>",
        "description": "Workspace-bound scoped key, current Owner/Admin issuer, shared rolling quota."
      },
      "session": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__session",
        "description": "Configured production identity session; development uses a private loopback cookie. Mutations require approved Origin; tenant header checked against current membership."
      }
    }
  },
  "x-lettercape-pending-ga-families": [
    "Clerk invites/seats/SSO/MFA",
    "collaboration/media/translation/screenshot import",
    "provider export/status reconciliation",
    "approved delivery/scheduling/recipient ledger/provider events",
    "billing/customer/entitlements/signed webhooks",
    "rights/deletion/retention and operations"
  ],
  "x-lettercape-json-semantics": "EmailSpec shape does not encode all server semantic refinements (unique block/inline node IDs,200 total nodes including inline runs, safe URLs/raw sanitizer, tenant references, schema1.2–1.4 inline content and its exact plain-text projection, schema1.3–1.4 first-name fields with explicit fallback, schema1.4-only product money and exact price/display equality, canonical unique emphasis marks, schema1.2–1.4 structured1MiB UTF8 budget, explicit UTM well-formed Unicode/no controls/nonblank/256UTF8bytes and final2048UTF8bytes, conflicting/duplicate/case-ambiguous managed keys, signed/merge/conditional targets). Inline content and offline explicit first-name values do not qualify recipient binding or provider merge tokens. Product money is lexical explicit input with frozen display; API input does not attest user review, registered currency, current price truth, precision verification or FX. Optional tracking defaults absent and changes new artifacts only; no collectors or consent/send success is implied. Server validation remains authoritative. HubSpot footer settings additionally require composed address bounds, well-formed Unicode, controls/nonblank and authored delimiter checks; these server refinements are omitted from JSON Schema and remain authoritative."
}
