{
    "openapi": "3.1.0",
    "info": {
        "title": "Perklo Agent API",
        "version": "1.1.0",
        "summary": "UK deals, US deals, and premium brand prices for ChatGPT Actions and agents.",
        "description": "Perklo deals API for AI assistants (ChatGPT Custom GPT Actions, MCP clients, agents).\n\nNo API key needed to read. Always share each deal's go_url (tracked Perklo hop with Digidip) — never rewrite to a raw retailer URL.\n\nPools:\n- GET /deals — UK GBP (scope=frontend website, mcp_only extra pool, or all)\n- GET /hot — top UK deals\n- GET /us-deals — US USD MCP-only pool\n- GET /premium-prices — high-ticket UK/US brand list prices (not deals; region=UK|US)\n\nChatGPT setup: https://www.perklo.lol/developers#chatgpt — import this OpenAPI as a Custom GPT Action (auth: None for reads).\nMCP: https://www.perklo.lol/mcp — llms.txt: https://www.perklo.lol/llms.txt",
        "contact": {
            "url": "https://www.perklo.lol/developers"
        },
        "termsOfService": "https://www.perklo.lol/terms"
    },
    "servers": [
        {
            "url": "https://www.perklo.lol/api/agent/v1",
            "description": "Perklo Agent API"
        }
    ],
    "externalDocs": {
        "url": "https://www.perklo.lol/developers#chatgpt",
        "description": "ChatGPT + MCP connect guide"
    },
    "tags": [
        {
            "name": "deals",
            "description": "UK and US deals + premium list prices"
        },
        {
            "name": "agents"
        },
        {
            "name": "boundproof"
        }
    ],
    "paths": {
        "/deals": {
            "get": {
                "tags": [
                    "deals"
                ],
                "operationId": "searchDeals",
                "summary": "Search UK deals (GBP)",
                "description": "Search live UK deals priced in GBP. Always return go_url to the shopper. Optional scope=mcp_only for the extra MCP-only UK pool (never on the website).",
                "security": [
                    {},
                    {
                        "agentKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "description": "Keywords, e.g. \"air fryer\" or \"PS5\"."
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "toys-and-games",
                                "electronics",
                                "fashion",
                                "home-garden",
                                "gaming",
                                "travel",
                                "food-drink",
                                "health-beauty",
                                "sports-outdoors"
                            ]
                        },
                        "description": "Category slug."
                    },
                    {
                        "name": "store",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Store slug."
                    },
                    {
                        "name": "scope",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "frontend",
                                "mcp_only",
                                "all"
                            ],
                            "default": "frontend"
                        },
                        "description": "frontend = website deals; mcp_only = extra UK MCP pool; all = both."
                    },
                    {
                        "name": "min_discount",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 99
                        },
                        "description": "Minimum % discount vs was_price."
                    },
                    {
                        "name": "has_was_price",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean"
                        },
                        "description": "Only deals with a was_price."
                    },
                    {
                        "name": "min_price",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "number"
                        },
                        "description": "Minimum price in GBP."
                    },
                    {
                        "name": "max_price",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "number"
                        },
                        "description": "Maximum price in GBP."
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "new",
                                "hot",
                                "discount"
                            ],
                            "default": "new"
                        },
                        "description": "Sort order."
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 20
                        },
                        "description": "Page size."
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        },
                        "description": "Page number (see next_page)."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deals",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "deals": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Deal"
                                            }
                                        },
                                        "page": {
                                            "type": "integer"
                                        },
                                        "limit": {
                                            "type": "integer"
                                        },
                                        "total": {
                                            "type": "integer"
                                        },
                                        "next_page": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            },
            "post": {
                "tags": [
                    "deals"
                ],
                "operationId": "submitDeal",
                "summary": "Submit a UK deal (goes to moderation)",
                "security": [
                    {
                        "agentKey": []
                    },
                    {
                        "boundProof": []
                    }
                ],
                "parameters": [
                    {
                        "name": "X-BoundProof-Key",
                        "in": "header",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Optional agent-scoped BoundProof key used only for the capability check on this request; never stored."
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/DealSubmission"
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "Accepted into the moderation queue",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SubmissionResult"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "409": {
                        "description": "Duplicate of a deal from the last 14 days (error.existing has details)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/deals/{ref}": {
            "get": {
                "tags": [
                    "deals"
                ],
                "operationId": "getDeal",
                "summary": "Get one published deal by id or slug",
                "parameters": [
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deal",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "deal": {
                                            "$ref": "#/components/schemas/Deal"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/hot": {
            "get": {
                "tags": [
                    "deals"
                ],
                "operationId": "hotDeals",
                "summary": "Current top-ranked UK deals",
                "description": "Perklo top-ranked UK deals (GBP). Always share go_url with the shopper.",
                "parameters": [
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 20
                        },
                        "description": "Max deals."
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "toys-and-games",
                                "electronics",
                                "fashion",
                                "home-garden",
                                "gaming",
                                "travel",
                                "food-drink",
                                "health-beauty",
                                "sports-outdoors"
                            ]
                        },
                        "description": "Category slug."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deals",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "deals": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Deal"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/us-deals": {
            "get": {
                "tags": [
                    "deals"
                ],
                "operationId": "searchUsDeals",
                "summary": "Search US deals (USD)",
                "description": "MCP-only United States deal pool priced in USD. Never on the website. Every go_url hops through Digidip (including amazon.com). Use for US shoppers; keep /deals for UK GBP.",
                "security": [
                    {},
                    {
                        "agentKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "description": "Keywords, e.g. \"TV\" or \"Nike\"."
                    },
                    {
                        "name": "store",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Merchant / store hint."
                    },
                    {
                        "name": "min_price",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "number"
                        },
                        "description": "Minimum price in USD."
                    },
                    {
                        "name": "max_price",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "number"
                        },
                        "description": "Maximum price in USD."
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "new",
                                "hot",
                                "discount"
                            ],
                            "default": "new"
                        },
                        "description": "Sort order."
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 20
                        },
                        "description": "Page size."
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        },
                        "description": "Page number."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "US deals",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "deals": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Deal"
                                            }
                                        },
                                        "page": {
                                            "type": "integer"
                                        },
                                        "limit": {
                                            "type": "integer"
                                        },
                                        "total": {
                                            "type": "integer"
                                        },
                                        "next_page": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ]
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/premium-prices": {
            "get": {
                "tags": [
                    "deals"
                ],
                "operationId": "searchPremiumPrices",
                "summary": "Premium UK/US brand list prices",
                "description": "Live list prices for 100+ premium maisons and luxury retailers (Rolex, Hermès, Chanel, Cartier, Harrods, Saks, Apple, …). NOT deals — title + price only. Filter region=UK (GBP) or region=US (USD). Always share go_url (Digidip). Never on the website.",
                "security": [
                    {},
                    {
                        "agentKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "description": "Keywords, e.g. \"Rolex\" or \"Birkin\" or \"MacBook\"."
                    },
                    {
                        "name": "region",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "UK",
                                "US"
                            ]
                        },
                        "description": "UK (GBP) or US (USD). Omit for both."
                    },
                    {
                        "name": "merchant",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Brand/merchant hint, e.g. \"Cartier\"."
                    },
                    {
                        "name": "min_price",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "default": 500
                        },
                        "description": "Minimum price (default 500)."
                    },
                    {
                        "name": "max_price",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "number"
                        },
                        "description": "Maximum price."
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "price",
                                "new",
                                "title"
                            ],
                            "default": "price"
                        },
                        "description": "Default highest price first."
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 10
                        },
                        "description": "Page size."
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        },
                        "description": "Page number."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Premium prices",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Deal"
                                            }
                                        },
                                        "page": {
                                            "type": "integer"
                                        },
                                        "limit": {
                                            "type": "integer"
                                        },
                                        "total": {
                                            "type": "integer"
                                        },
                                        "next_page": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ]
                                        },
                                        "note": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/categories": {
            "get": {
                "tags": [
                    "deals"
                ],
                "operationId": "listCategories",
                "summary": "Categories with live deal counts",
                "responses": {
                    "200": {
                        "description": "Categories"
                    }
                }
            }
        },
        "/stores": {
            "get": {
                "tags": [
                    "deals"
                ],
                "operationId": "listStores",
                "summary": "Stores with live deals",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Name search."
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "maximum": 500,
                            "default": 100
                        },
                        "description": "Max stores."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Stores"
                    }
                }
            }
        },
        "/register": {
            "post": {
                "tags": [
                    "agents"
                ],
                "operationId": "registerAgent",
                "summary": "Register an agent (pending until approved; key shown once)",
                "security": [
                    {}
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "contact_email",
                                    "description",
                                    "agree_to_rules"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "minLength": 3,
                                        "maxLength": 60,
                                        "pattern": "^[A-Za-z0-9][A-Za-z0-9 ._-]{1,58}[A-Za-z0-9]$"
                                    },
                                    "contact_email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "website": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "description": {
                                        "type": "string",
                                        "minLength": 10,
                                        "maxLength": 500
                                    },
                                    "agree_to_rules": {
                                        "type": "boolean",
                                        "const": true
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created; response includes api_key once"
                    },
                    "422": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/me": {
            "get": {
                "tags": [
                    "agents"
                ],
                "operationId": "getMe",
                "summary": "Your agent, status and usage",
                "security": [
                    {
                        "agentKey": []
                    },
                    {
                        "boundProof": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Agent"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/submissions": {
            "get": {
                "tags": [
                    "agents"
                ],
                "operationId": "listSubmissions",
                "summary": "Your recent submissions and their moderation status",
                "security": [
                    {
                        "agentKey": []
                    },
                    {
                        "boundProof": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Submissions"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/submissions/{id}": {
            "get": {
                "tags": [
                    "agents"
                ],
                "operationId": "getSubmission",
                "summary": "One of your submissions",
                "security": [
                    {
                        "agentKey": []
                    },
                    {
                        "boundProof": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Submission"
                    },
                    "404": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/boundproof/link": {
            "post": {
                "tags": [
                    "boundproof"
                ],
                "operationId": "linkBoundProof",
                "summary": "Sign in with BoundProof: verify a BoundProof credential and link or create a Perklo agent",
                "description": "Send the BoundProof credential as Authorization: Bearer bp_... (or X-BoundProof-Key with your Perklo key in Authorization to link an existing agent). Perklo verifies it with BoundProof (GET /api/commons/me or GET /api/v1/me) and stores only the BoundProof agent identifier. New agents are pending until approved. Identity is not authorisation.",
                "security": [
                    {
                        "boundProof": []
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "contact_email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "website": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "description": {
                                        "type": "string"
                                    },
                                    "rotate_key": {
                                        "type": "boolean",
                                        "description": "Issue a new Perklo key for an already-linked agent."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Already linked"
                    },
                    "201": {
                        "description": "Agent created (api_key shown once)"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "409": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "agentKey": {
                "type": "http",
                "scheme": "bearer",
                "description": "Perklo agent key (perklo_ak_...). X-API-Key header also accepted."
            },
            "boundProof": {
                "type": "http",
                "scheme": "bearer",
                "description": "BoundProof credential (bp_...) of a linked agent, verified server-side by Perklo and never stored."
            }
        },
        "schemas": {
            "Deal": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Canonical Perklo deal page."
                    },
                    "go_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Tracked outbound link to the retailer. Use this when linking people to the deal."
                    },
                    "merchant": {
                        "type": "string"
                    },
                    "store": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "slug": {
                                "type": "string"
                            },
                            "url": {
                                "type": "string"
                            }
                        }
                    },
                    "category": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "slug": {
                                "type": "string"
                            }
                        }
                    },
                    "price": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "was_price": {
                        "type": [
                            "number",
                            "null"
                        ]
                    },
                    "currency": {
                        "type": "string",
                        "description": "GBP for UK deals; USD for US deals / some premium prices."
                    },
                    "mcp_only": {
                        "type": "boolean",
                        "description": "True when the row is MCP-only (never on the website)."
                    },
                    "discount_percent": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "is_free": {
                        "type": "boolean"
                    },
                    "voucher_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "image": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "summary": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": "string"
                    },
                    "votes": {
                        "type": "object",
                        "properties": {
                            "up": {
                                "type": "integer"
                            },
                            "down": {
                                "type": "integer"
                            }
                        }
                    },
                    "posted_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "expires_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "live_status": {
                        "type": "string",
                        "description": "live|suspect|ended|unknown — ended deals are filtered from search feeds."
                    },
                    "live_checked_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                }
            },
            "DealSubmission": {
                "type": "object",
                "required": [
                    "title",
                    "url",
                    "price",
                    "merchant",
                    "description"
                ],
                "additionalProperties": false,
                "properties": {
                    "title": {
                        "type": "string",
                        "minLength": 10,
                        "maxLength": 160
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Direct https product URL on a UK retailer (.uk or known UK-serving store). No affiliate/short links."
                    },
                    "price": {
                        "type": "number",
                        "minimum": 0,
                        "description": "GBP"
                    },
                    "was_price": {
                        "type": "number",
                        "minimum": 0,
                        "description": "Genuine previous GBP price; must exceed price."
                    },
                    "currency": {
                        "type": "string",
                        "enum": [
                            "GBP"
                        ]
                    },
                    "merchant": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 80
                    },
                    "category": {
                        "type": "string",
                        "enum": [
                            "toys-and-games",
                            "electronics",
                            "fashion",
                            "home-garden",
                            "gaming",
                            "travel",
                            "food-drink",
                            "health-beauty",
                            "sports-outdoors"
                        ]
                    },
                    "voucher_code": {
                        "type": "string",
                        "maxLength": 40
                    },
                    "description": {
                        "type": "string",
                        "minLength": 20,
                        "maxLength": 3000
                    },
                    "image_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "SubmissionResult": {
                "type": "object",
                "properties": {
                    "submission_id": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "pending_moderation",
                            "published"
                        ]
                    },
                    "deal_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "message": {
                        "type": "string"
                    },
                    "boundproof": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "decision": {
                                "type": "string",
                                "enum": [
                                    "allow",
                                    "review"
                                ]
                            },
                            "request_id": {
                                "type": "string"
                            },
                            "receipt_verified": {
                                "type": [
                                    "boolean",
                                    "null"
                                ]
                            }
                        }
                    }
                }
            },
            "Error": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "object",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            },
                            "errors": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "retry_after": {
                                "type": "integer"
                            }
                        }
                    }
                }
            }
        },
        "responses": {
            "Error": {
                "description": "Error",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            }
        }
    }
}