{
  "openapi": "3.1.0",
  "info": {
    "title": "Amplevo API",
    "version": "1.0.0",
    "summary": "Find pages AI cites, book placements on them, track brand mention rate.",
    "description": "REST API for Amplevo. Money is an integer in USD cents. Timestamps are ISO 8601 UTC. Lists use cursor pagination. POST /orders requires an Idempotency-Key header. Every API key carries its own limits (workspaces, max per order, monthly cap, approval amount). 60 requests a minute per key. Docs: https://amplevo.com/developers/api · Full text: https://amplevo.com/llms-full.txt · MCP server: https://app.amplevo.com/api/mcp",
    "termsOfService": "https://amplevo.com/terms",
    "contact": {
      "name": "Amplevo",
      "email": "hello@amplevo.com",
      "url": "https://amplevo.com/developers"
    }
  },
  "externalDocs": {
    "description": "Developer docs",
    "url": "https://amplevo.com/developers"
  },
  "servers": [
    {
      "url": "https://app.amplevo.com/api/v1",
      "description": "Production (test mode with amp_test_ keys: $1,000 of test funds)"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "workspaces",
      "description": "Brands or clients the key can use."
    },
    {
      "name": "pages",
      "description": "Search cited pages."
    },
    {
      "name": "listings",
      "description": "Bookable placements on cited pages."
    },
    {
      "name": "quotes",
      "description": "Lock a price before booking."
    },
    {
      "name": "orders",
      "description": "Book, follow and cancel placements."
    },
    {
      "name": "questions",
      "description": "Weekly tracked questions."
    },
    {
      "name": "reports",
      "description": "Brand mention rate."
    },
    {
      "name": "balance",
      "description": "Funds and the calling key's limits."
    }
  ],
  "paths": {
    "/workspaces": {
      "get": {
        "operationId": "listWorkspaces",
        "summary": "List workspaces",
        "description": "The brands or clients this key can use. The first one is the key's default.",
        "tags": [
          "workspaces"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "list_workspaces",
        "parameters": [],
        "responses": {
          "200": {
            "description": "List workspaces",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceList"
                },
                "example": {
                  "object": "list",
                  "data": [
                    {
                      "id": "ws_northpay",
                      "object": "workspace",
                      "name": "Northpay",
                      "domain": "northpay.example",
                      "category": "Payroll software",
                      "default": true,
                      "created_at": "2026-09-02T12:00:00.000Z"
                    }
                  ],
                  "has_more": false,
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/pages": {
      "get": {
        "operationId": "listPages",
        "summary": "Search cited pages",
        "description": "Pages AI engines cite that you can book. Each page lists its listings (placement type, publisher price, turnaround).",
        "tags": [
          "pages"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "search_pages",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Words to match in the page title, site, niche or the questions it's cited for.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "description": "A workspace this key can use. Default: the key's first workspace.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "engine",
            "in": "query",
            "required": false,
            "description": "chatgpt | perplexity | gemini | claude.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "min_engines",
            "in": "query",
            "required": false,
            "description": "1–4. Only pages cited by at least this many engines.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "placement_type",
            "in": "query",
            "required": false,
            "description": "inclusion | listicle | sponsored | creator | review.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_price",
            "in": "query",
            "required": false,
            "description": "Cents. Only listings at or under this publisher price.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "niche",
            "in": "query",
            "required": false,
            "description": "Only pages in this niche.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "brand_present",
            "in": "query",
            "required": false,
            "description": "false = only pages that don't name the workspace's brand yet (needs workspace_id).",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1–100. Default 25.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor from the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search cited pages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CitedPageList"
                },
                "example": {
                  "object": "list",
                  "data": [
                    {
                      "id": "pg_011",
                      "object": "cited_page",
                      "url": "https://ledgerlab.co/best-accounting-software",
                      "domain": "ledgerlab.co",
                      "title": "Best accounting software for small businesses",
                      "publisher": "LedgerLab",
                      "kind": "site",
                      "niche": "Accounting",
                      "cited_by": [
                        "chatgpt",
                        "perplexity",
                        "gemini",
                        "claude"
                      ],
                      "citations_per_month": 2100,
                      "questions": [
                        "best accounting software for small business",
                        "bookkeeping tool for freelancers"
                      ],
                      "booked_for_workspaces": [],
                      "listings": [
                        {
                          "id": "pg_011.listicle",
                          "type": "listicle",
                          "price": 98000,
                          "fee_rate": 0.2,
                          "turnaround_days": 7,
                          "currency": "usd"
                        },
                        {
                          "id": "pg_011.review",
                          "type": "review",
                          "price": 165000,
                          "fee_rate": 0.2,
                          "turnaround_days": 14,
                          "currency": "usd"
                        }
                      ]
                    }
                  ],
                  "has_more": true,
                  "next_cursor": "cur_25"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/listings/{id}": {
      "get": {
        "operationId": "getListing",
        "summary": "Retrieve a listing",
        "description": "One bookable placement: type, publisher price, turnaround and the publisher's rules. A listing id is <page id>.<placement type>.",
        "tags": [
          "listings"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "get_listing",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Listing ID, e.g. pg_011.listicle.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve a listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                },
                "example": {
                  "id": "pg_011.listicle",
                  "object": "listing",
                  "page_id": "pg_011",
                  "page_url": "https://ledgerlab.co/best-accounting-software",
                  "type": "listicle",
                  "price": 98000,
                  "fee_rate": 0.2,
                  "currency": "usd",
                  "turnaround_days": 7,
                  "publisher": {
                    "name": "LedgerLab",
                    "domain": "ledgerlab.co"
                  },
                  "cited_by": [
                    "chatgpt",
                    "perplexity",
                    "gemini",
                    "claude"
                  ],
                  "disclosure_label": "Sponsored",
                  "refused_categories": [
                    "Gambling",
                    "Adult",
                    "Crypto"
                  ],
                  "active": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/quotes": {
      "post": {
        "operationId": "createQuote",
        "summary": "Create a quote",
        "description": "Lock a price for a listing and attach your brief. A quote lasts 15 minutes, is single use, and says up front whether booking it will wait for an Admin.\n\nfee = 20% of the publisher price (0 on your first placement during early access: fee_waived true).\n\nQuoting never spends money. The key's max per order and monthly cap are checked here too, so an order that would be refused fails early.",
        "tags": [
          "quotes"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "book",
        "x-mcp-tool": "quote",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteCreate"
              },
              "example": {
                "listing_id": "pg_011.listicle",
                "workspace_id": "ws_ledgerly",
                "brief": {
                  "target_url": "https://ledgerly.example",
                  "product_name": "Ledgerly",
                  "talking_points": [
                    "Month-end close in a day",
                    "Built for teams of 1–50"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Create a quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Quote"
                },
                "example": {
                  "id": "q_CmnYykYauJPSSMO9",
                  "object": "quote",
                  "listing_id": "pg_011.listicle",
                  "workspace_id": "ws_ledgerly",
                  "page_url": "https://ledgerlab.co/best-accounting-software",
                  "type": "listicle",
                  "price": 98000,
                  "fee": 19600,
                  "fee_waived": false,
                  "total": 117600,
                  "currency": "usd",
                  "requires_approval": true,
                  "test": true,
                  "expires_at": "2026-12-04T20:36:00.139Z",
                  "created_at": "2026-12-04T20:21:00.142Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/orders": {
      "post": {
        "operationId": "createOrder",
        "summary": "Book an order",
        "description": "Book a quote. Requires an Idempotency-Key header. Within the key's limits: 201, money reserved from your balance, status awaiting_publisher. Above the key's approval amount: 202, status pending_approval and an approval_url for an Admin.\n\nMoney stays reserved in your balance until the placement is verified live. The publisher is paid after that.\n\nRetrying with the same Idempotency-Key returns the same order with header Idempotent-Replayed: true.\n\nErrors: 402 insufficient_balance, 422 over_order_cap / over_monthly_cap / over_workspace_limit / self_booking / not_available, 409 invalid_state (details.reason: quote_used, quote_expired, mode_mismatch).",
        "tags": [
          "orders"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "book",
        "x-mcp-tool": "book",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "Unique per booking; reuse it only to retry the same booking. A UUID works.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderCreate"
              },
              "example": {
                "quote_id": "q_CmnYykYauJPSSMO9"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Booked. Money reserved; status awaiting_publisher.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "202": {
            "description": "Above the key's approval amount; status pending_approval with approval.approval_url.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                },
                "example": {
                  "id": "ord_HxjJun1HN6qL6sqe",
                  "object": "order",
                  "status": "pending_approval",
                  "status_label": "Waiting for approval",
                  "workspace_id": "ws_ledgerly",
                  "page_url": "https://ledgerlab.co/best-accounting-software",
                  "type": "listicle",
                  "amount": {
                    "price": 98000,
                    "fee": 19600,
                    "total": 117600,
                    "refunded": 0,
                    "currency": "usd"
                  },
                  "counter_offer": null,
                  "approval": {
                    "required": true,
                    "status": "pending",
                    "approval_url": "https://amplevo.com/app/orders/ord_HxjJun1HN6qL6sqe",
                    "approved_at": null
                  },
                  "created_by": {
                    "type": "api_key",
                    "key_id": "key_d1qlZYMhPXRkWe8p"
                  },
                  "live_url": null,
                  "verification": null,
                  "deadlines": {
                    "respond_by": null,
                    "due_at": null,
                    "fix_by": null,
                    "issue_window_ends_at": null,
                    "live_until": null
                  },
                  "timeline": [
                    {
                      "status": "pending_approval",
                      "at": "2026-12-04T20:21:00.621Z",
                      "note": "Booked. Waiting for an Admin's approval."
                    }
                  ],
                  "question_ids": [],
                  "test": true,
                  "created_at": "2026-12-04T20:21:00.546Z",
                  "updated_at": "2026-12-04T20:21:00.546Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "get": {
        "operationId": "listOrders",
        "summary": "List orders",
        "description": "Orders in the key's workspaces, newest first. Test keys see test orders only.",
        "tags": [
          "orders"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "list_orders",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "description": "A workspace this key can use. Default: the key's first workspace.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status (see order states).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1–100. Default 25.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor from the previous page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List orders",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderList"
                },
                "example": {
                  "object": "list",
                  "data": [
                    {
                      "id": "ord_HxjJun1HN6qL6sqe",
                      "object": "order",
                      "status": "pending_approval",
                      "status_label": "Waiting for approval",
                      "workspace_id": "ws_ledgerly",
                      "page_url": "https://ledgerlab.co/best-accounting-software",
                      "type": "listicle",
                      "amount": {
                        "price": 98000,
                        "fee": 19600,
                        "total": 117600,
                        "refunded": 0,
                        "currency": "usd"
                      },
                      "counter_offer": null,
                      "approval": {
                        "required": true,
                        "status": "pending",
                        "approval_url": "https://amplevo.com/app/orders/ord_HxjJun1HN6qL6sqe",
                        "approved_at": null
                      },
                      "created_by": {
                        "type": "api_key",
                        "key_id": "key_d1qlZYMhPXRkWe8p"
                      },
                      "live_url": null,
                      "verification": null,
                      "deadlines": {
                        "respond_by": null,
                        "due_at": null,
                        "fix_by": null,
                        "issue_window_ends_at": null,
                        "live_until": null
                      },
                      "timeline": [
                        {
                          "status": "pending_approval",
                          "at": "2026-12-04T20:21:00.621Z",
                          "note": "Booked. Waiting for an Admin's approval."
                        }
                      ],
                      "question_ids": [],
                      "test": true,
                      "created_at": "2026-12-04T20:21:00.546Z",
                      "updated_at": "2026-12-04T20:21:00.546Z"
                    }
                  ],
                  "has_more": false,
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/orders/{id}": {
      "get": {
        "operationId": "getOrder",
        "summary": "Retrieve an order",
        "description": "Status, approval, live URL, checks, deadlines and timeline.",
        "tags": [
          "orders"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "get_order",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Order ID, e.g. ord_HxjJun1HN6qL6sqe.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve an order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                },
                "example": {
                  "id": "ord_HxjJun1HN6qL6sqe",
                  "object": "order",
                  "status": "verified",
                  "status_label": "Live and verified",
                  "workspace_id": "ws_ledgerly",
                  "page_url": "https://ledgerlab.co/best-accounting-software",
                  "type": "listicle",
                  "amount": {
                    "price": 98000,
                    "fee": 19600,
                    "total": 117600,
                    "refunded": 0,
                    "currency": "usd"
                  },
                  "counter_offer": null,
                  "approval": {
                    "required": true,
                    "status": "approved",
                    "approval_url": "https://amplevo.com/app/orders/ord_HxjJun1HN6qL6sqe",
                    "approved_at": "2026-12-04T21:02:11.000Z"
                  },
                  "created_by": {
                    "type": "api_key",
                    "key_id": "key_d1qlZYMhPXRkWe8p"
                  },
                  "live_url": "https://ledgerlab.co/best-accounting-software#ledgerly",
                  "verification": {
                    "status": "passed",
                    "checks": [
                      {
                        "kind": "live",
                        "result": "pass"
                      },
                      {
                        "kind": "link",
                        "result": "pass"
                      },
                      {
                        "kind": "disclosure",
                        "result": "pass"
                      }
                    ]
                  },
                  "deadlines": {
                    "respond_by": null,
                    "due_at": null,
                    "fix_by": null,
                    "issue_window_ends_at": "2026-12-16T15:21:37.000Z",
                    "live_until": "2027-12-09T15:21:37.000Z"
                  },
                  "timeline": [
                    {
                      "status": "pending_approval",
                      "at": "2026-12-04T20:21:00.621Z",
                      "note": "Booked. Waiting for an Admin's approval."
                    },
                    {
                      "status": "awaiting_publisher",
                      "at": "2026-12-04T21:02:11.000Z",
                      "note": "Approved."
                    },
                    {
                      "status": "in_progress",
                      "at": "2026-12-05T08:40:00.000Z",
                      "note": "Publisher accepted."
                    },
                    {
                      "status": "delivered",
                      "at": "2026-12-09T15:21:37.000Z",
                      "note": "Live URL submitted."
                    },
                    {
                      "status": "verified",
                      "at": "2026-12-09T16:02:00.000Z",
                      "note": "Checks passed."
                    }
                  ],
                  "question_ids": [
                    "ws_ledgerly_q02"
                  ],
                  "test": false,
                  "created_at": "2026-12-04T20:21:00.546Z",
                  "updated_at": "2026-12-09T16:02:00.000Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/orders/{id}/cancel": {
      "post": {
        "operationId": "cancelOrder",
        "summary": "Cancel an order",
        "description": "Cancel before the publisher accepts (pending_approval, awaiting_publisher or counter_offer). The reserved money goes back to your balance in full.\n\n409 invalid_state once the publisher has accepted.",
        "tags": [
          "orders"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "book",
        "x-mcp-tool": "cancel_order",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Order ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderCancel"
              },
              "example": {
                "reason": "Budget moved to Q1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Cancel an order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                },
                "example": {
                  "id": "ord_HxjJun1HN6qL6sqe",
                  "object": "order",
                  "status": "cancelled",
                  "status_label": "Cancelled",
                  "workspace_id": "ws_ledgerly",
                  "page_url": "https://ledgerlab.co/best-accounting-software",
                  "type": "listicle",
                  "amount": {
                    "price": 98000,
                    "fee": 19600,
                    "total": 117600,
                    "refunded": 0,
                    "currency": "usd"
                  },
                  "counter_offer": null,
                  "approval": {
                    "required": false
                  },
                  "created_by": {
                    "type": "api_key",
                    "key_id": "key_d1qlZYMhPXRkWe8p"
                  },
                  "live_url": null,
                  "verification": null,
                  "deadlines": {
                    "respond_by": null,
                    "due_at": null,
                    "fix_by": null,
                    "issue_window_ends_at": null,
                    "live_until": null
                  },
                  "timeline": [
                    {
                      "status": "pending_approval",
                      "at": "2026-12-04T20:21:00.621Z",
                      "note": "Booked. Waiting for an Admin's approval."
                    }
                  ],
                  "question_ids": [],
                  "test": true,
                  "created_at": "2026-12-04T20:21:00.546Z",
                  "updated_at": "2026-12-04T20:21:00.546Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/questions": {
      "get": {
        "operationId": "listQuestions",
        "summary": "List tracked questions",
        "description": "Questions re-run every week on ChatGPT, Perplexity, Gemini and Claude, with the latest result per engine.",
        "tags": [
          "questions"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "list_questions",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "description": "A workspace this key can use. Default: the key's first workspace.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List tracked questions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackedQuestionList"
                },
                "example": {
                  "object": "list",
                  "data": [
                    {
                      "id": "q_saZgA1xoZwK00m9d",
                      "object": "tracked_question",
                      "workspace_id": "ws_northpay",
                      "text": "best payroll software for startups",
                      "active": true,
                      "cadence": "weekly",
                      "linked_order_id": null,
                      "last_run_at": "2026-12-04T20:21:10.250Z",
                      "latest": {
                        "by_engine": {
                          "chatgpt": "absent",
                          "perplexity": "absent",
                          "gemini": "cited",
                          "claude": "cited"
                        },
                        "mention_rate": 0.5
                      },
                      "created_at": "2026-12-04T20:21:07.272Z"
                    }
                  ],
                  "has_more": false,
                  "next_cursor": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      },
      "post": {
        "operationId": "createQuestion",
        "summary": "Track a question",
        "description": "Add a question to weekly tracking on all four engines. 5 tracked questions per organisation are free; each extra one is $0.50 a month from your balance, like in the app. Questions linked to a placement you booked are tracked free. The first run is the baseline.\n\nPaid questions count toward the key's monthly cap. 402 insufficient_balance when the balance can't cover $0.50 for the month.",
        "tags": [
          "questions"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "track",
        "x-mcp-tool": "track_question",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionCreate"
              },
              "example": {
                "text": "best payroll software for startups",
                "workspace_id": "ws_northpay"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Track a question",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackedQuestion"
                },
                "example": {
                  "id": "q_saZgA1xoZwK00m9d",
                  "object": "tracked_question",
                  "workspace_id": "ws_northpay",
                  "text": "best payroll software for startups",
                  "active": true,
                  "cadence": "weekly",
                  "linked_order_id": null,
                  "last_run_at": "2026-12-04T20:21:10.250Z",
                  "latest": {
                    "by_engine": {
                      "chatgpt": "absent",
                      "perplexity": "absent",
                      "gemini": "cited",
                      "claude": "cited"
                    },
                    "mention_rate": 0.5
                  },
                  "created_at": "2026-12-04T20:21:07.272Z"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/questions/{id}": {
      "delete": {
        "operationId": "deleteQuestion",
        "summary": "Stop tracking a question",
        "description": "Delete a tracked question and its history. Questions linked to a running placement stay.",
        "tags": [
          "questions"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "track",
        "x-mcp-tool": "untrack_question",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Tracked question ID.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Stop tracking a question",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deleted"
                },
                "example": {
                  "id": "q_saZgA1xoZwK00m9d",
                  "object": "tracked_question",
                  "deleted": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/reports/visibility": {
      "get": {
        "operationId": "visibilityReport",
        "summary": "Visibility report",
        "description": "How often AI names or cites the brand across tracked questions: overall, per engine and per week. Rates are decimals from 0 to 1.",
        "tags": [
          "reports"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "get_visibility",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "query",
            "required": false,
            "description": "A workspace this key can use. Default: the key's first workspace.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD. Default: 8 weeks ago.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD. Default: today.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "engine",
            "in": "query",
            "required": false,
            "description": "Limit to one engine.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "question_id",
            "in": "query",
            "required": false,
            "description": "Limit to one tracked question.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Visibility report",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisibilityReport"
                },
                "example": {
                  "object": "visibility_report",
                  "workspace_id": "ws_northpay",
                  "from": "2026-10-09",
                  "to": "2026-12-04",
                  "questions": 8,
                  "runs": 228,
                  "simulated": false,
                  "mention_rate": 0.25,
                  "change_pts": 27,
                  "by_engine": {
                    "chatgpt": 0.39,
                    "perplexity": 0.25,
                    "gemini": 0.14,
                    "claude": 0.23
                  },
                  "series": [
                    {
                      "week": "2026-10-12",
                      "mention_rate": 0.14
                    },
                    {
                      "week": "2026-10-19",
                      "mention_rate": 0.18
                    },
                    {
                      "week": "2026-10-26",
                      "mention_rate": 0.21
                    },
                    {
                      "week": "2026-11-02",
                      "mention_rate": 0.21
                    },
                    {
                      "week": "2026-11-09",
                      "mention_rate": 0.25
                    },
                    {
                      "week": "2026-11-16",
                      "mention_rate": 0.29
                    },
                    {
                      "week": "2026-11-23",
                      "mention_rate": 0.29
                    },
                    {
                      "week": "2026-11-30",
                      "mention_rate": 0.41
                    }
                  ],
                  "placements_live": 3
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/balance": {
      "get": {
        "operationId": "getBalance",
        "summary": "Balance and limits",
        "description": "Available and reserved funds, tracking cost, and the limits of the calling key with what is left this month. Agents should call it before booking.",
        "tags": [
          "balance"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-scope": "read",
        "x-mcp-tool": "get_balance",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Balance and limits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                },
                "example": {
                  "object": "balance",
                  "currency": "usd",
                  "test": false,
                  "available": 1842000,
                  "reserved": 117600,
                  "tracking": {
                    "active_questions": 30,
                    "free_questions": 5,
                    "free_left": 0,
                    "monthly_cost": 1150,
                    "per_question_month": 50
                  },
                  "limits": {
                    "max_per_order": 150000,
                    "monthly_cap": 500000,
                    "approval_above": 100000,
                    "spent_this_month": 117600,
                    "remaining_this_month": 382400,
                    "workspaces": [
                      "ws_northpay",
                      "ws_ledgerly"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    }
  },
  "webhooks": {
    "order.<status>": {
      "post": {
        "summary": "order.<status>",
        "description": "An order changed status, e.g. order.awaiting_publisher, order.verified, order.refunded. One event per status in the order states table. data.object is the order. Signed with the Amplevo-Signature header (t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">). Retried after 1, 5, 30, 120 and 720 minutes.",
        "parameters": [
          {
            "name": "Amplevo-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Event"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event."
          }
        }
      }
    },
    "tracking.run_completed": {
      "post": {
        "summary": "tracking.run_completed",
        "description": "The weekly tracking run finished for a workspace. Signed with the Amplevo-Signature header (t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">). Retried after 1, 5, 30, 120 and 720 minutes.",
        "parameters": [
          {
            "name": "Amplevo-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Event"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event."
          }
        }
      }
    },
    "balance.low": {
      "post": {
        "summary": "balance.low",
        "description": "The available balance can't cover next month's tracking. Signed with the Amplevo-Signature header (t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">). Retried after 1, 5, 30, 120 and 720 minutes.",
        "parameters": [
          {
            "name": "Amplevo-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Event"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event."
          }
        }
      }
    },
    "webhook.test": {
      "post": {
        "summary": "webhook.test",
        "description": "Sent by the \"Send test event\" button. Signed with the Amplevo-Signature header (t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">). Retried after 1, 5, 30, 120 and 720 minutes.",
        "parameters": [
          {
            "name": "Amplevo-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Event"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx within 10 seconds acknowledges the event."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Machine-readable code. Branch on this.",
                "enum": [
                  "insufficient_balance",
                  "over_order_cap",
                  "over_monthly_cap",
                  "needs_approval",
                  "self_booking",
                  "not_available",
                  "rate_limited",
                  "unauthorized",
                  "forbidden",
                  "not_found",
                  "invalid_state",
                  "invalid_input",
                  "over_workspace_limit",
                  "internal_error"
                ]
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation. Do not parse."
              },
              "details": {
                "type": "object",
                "description": "Numbers or a reason, when there are any (e.g. param, max_per_order, reason: quote_expired)."
              },
              "request_id": {
                "type": "string"
              },
              "doc_url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        },
        "examples": [
          {
            "error": {
              "code": "over_order_cap",
              "message": "Above this key's max per order.",
              "details": {
                "max_per_order": 100000,
                "total": 117600
              },
              "request_id": "req_vNf7vA1dilJYB9",
              "doc_url": "https://amplevo.com/developers/api#errors"
            }
          }
        ]
      },
      "Workspace": {
        "type": "object",
        "required": [
          "id",
          "object",
          "name",
          "domain",
          "default"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^ws_"
          },
          "object": {
            "const": "workspace"
          },
          "name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "default": {
            "type": "boolean",
            "description": "The key's default workspace."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "examples": [
          {
            "id": "ws_northpay",
            "object": "workspace",
            "name": "Northpay",
            "domain": "northpay.example",
            "category": "Payroll software",
            "default": true,
            "created_at": "2026-09-02T12:00:00.000Z"
          }
        ]
      },
      "WorkspaceList": {
        "type": "object",
        "required": [
          "object",
          "data",
          "has_more",
          "next_cursor"
        ],
        "properties": {
          "object": {
            "const": "list"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Workspace"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Deleted": {
        "type": "object",
        "required": [
          "id",
          "object",
          "deleted"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "type": "string"
          },
          "deleted": {
            "const": true
          }
        }
      },
      "ListingSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "<page id>.<type>"
          },
          "type": {
            "type": "string",
            "description": "Placement type.",
            "enum": [
              "inclusion",
              "listicle",
              "sponsored",
              "creator",
              "review"
            ]
          },
          "price": {
            "type": "integer",
            "description": "Publisher price. In USD cents."
          },
          "fee_rate": {
            "type": "number"
          },
          "turnaround_days": {
            "type": "integer"
          },
          "currency": {
            "type": "string",
            "const": "usd"
          }
        }
      },
      "CitedPage": {
        "type": "object",
        "required": [
          "id",
          "object",
          "url",
          "domain",
          "cited_by",
          "listings"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^pg_"
          },
          "object": {
            "const": "cited_page"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "domain": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "description": "site or channel."
          },
          "niche": {
            "type": "string"
          },
          "cited_by": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "perplexity",
                "gemini",
                "claude"
              ]
            }
          },
          "citations_per_month": {
            "type": "integer",
            "description": "Estimated AI citations per month."
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Questions it is cited for."
          },
          "booked_for_workspaces": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Your workspaces that already booked it."
          },
          "listings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingSummary"
            }
          }
        },
        "examples": [
          {
            "id": "pg_011",
            "object": "cited_page",
            "url": "https://ledgerlab.co/best-accounting-software",
            "domain": "ledgerlab.co",
            "title": "Best accounting software for small businesses",
            "publisher": "LedgerLab",
            "kind": "site",
            "niche": "Accounting",
            "cited_by": [
              "chatgpt",
              "perplexity",
              "gemini",
              "claude"
            ],
            "citations_per_month": 2100,
            "questions": [
              "best accounting software for small business",
              "bookkeeping tool for freelancers"
            ],
            "booked_for_workspaces": [],
            "listings": [
              {
                "id": "pg_011.listicle",
                "type": "listicle",
                "price": 98000,
                "fee_rate": 0.2,
                "turnaround_days": 7,
                "currency": "usd"
              },
              {
                "id": "pg_011.review",
                "type": "review",
                "price": 165000,
                "fee_rate": 0.2,
                "turnaround_days": 14,
                "currency": "usd"
              }
            ]
          }
        ]
      },
      "CitedPageList": {
        "type": "object",
        "required": [
          "object",
          "data",
          "has_more",
          "next_cursor"
        ],
        "properties": {
          "object": {
            "const": "list"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CitedPage"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Listing": {
        "type": "object",
        "required": [
          "id",
          "object",
          "page_id",
          "type",
          "price",
          "currency",
          "active"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "<page id>.<placement type>"
          },
          "object": {
            "const": "listing"
          },
          "page_id": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "format": "uri"
          },
          "type": {
            "type": "string",
            "description": "Placement type.",
            "enum": [
              "inclusion",
              "listicle",
              "sponsored",
              "creator",
              "review"
            ]
          },
          "price": {
            "type": "integer",
            "description": "Publisher price. In USD cents."
          },
          "fee_rate": {
            "type": "number"
          },
          "currency": {
            "type": "string",
            "const": "usd"
          },
          "turnaround_days": {
            "type": "integer"
          },
          "publisher": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "domain": {
                "type": "string"
              }
            }
          },
          "cited_by": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "chatgpt",
                "perplexity",
                "gemini",
                "claude"
              ]
            }
          },
          "disclosure_label": {
            "type": "string"
          },
          "refused_categories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "active": {
            "type": "boolean"
          }
        },
        "examples": [
          {
            "id": "pg_011.listicle",
            "object": "listing",
            "page_id": "pg_011",
            "page_url": "https://ledgerlab.co/best-accounting-software",
            "type": "listicle",
            "price": 98000,
            "fee_rate": 0.2,
            "currency": "usd",
            "turnaround_days": 7,
            "publisher": {
              "name": "LedgerLab",
              "domain": "ledgerlab.co"
            },
            "cited_by": [
              "chatgpt",
              "perplexity",
              "gemini",
              "claude"
            ],
            "disclosure_label": "Sponsored",
            "refused_categories": [
              "Gambling",
              "Adult",
              "Crypto"
            ],
            "active": true
          }
        ]
      },
      "Brief": {
        "type": "object",
        "required": [
          "target_url"
        ],
        "description": "What fits depends on the placement type. Sent to the publisher.",
        "properties": {
          "target_url": {
            "type": "string",
            "description": "Page on your site the placement links to.",
            "format": "uri"
          },
          "product_name": {
            "type": "string"
          },
          "anchor": {
            "type": "string",
            "description": "Link words (optional)."
          },
          "sentence": {
            "type": "string",
            "description": "One sentence about the brand (added to an article)."
          },
          "talking_points": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "topic": {
            "type": "string"
          },
          "key_points": {
            "type": "string"
          },
          "access_notes": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        }
      },
      "QuoteCreate": {
        "type": "object",
        "required": [
          "listing_id",
          "brief"
        ],
        "properties": {
          "listing_id": {
            "type": "string"
          },
          "brief": {
            "$ref": "#/components/schemas/Brief"
          },
          "workspace_id": {
            "type": "string"
          },
          "question_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Quote": {
        "type": "object",
        "required": [
          "id",
          "object",
          "listing_id",
          "price",
          "fee",
          "total",
          "currency",
          "requires_approval",
          "expires_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^q_"
          },
          "object": {
            "const": "quote"
          },
          "listing_id": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "format": "uri"
          },
          "type": {
            "type": "string",
            "description": "Placement type.",
            "enum": [
              "inclusion",
              "listicle",
              "sponsored",
              "creator",
              "review"
            ]
          },
          "price": {
            "type": "integer",
            "description": "Publisher price. In USD cents."
          },
          "fee": {
            "type": "integer",
            "description": "Amplevo fee. In USD cents."
          },
          "fee_waived": {
            "type": "boolean",
            "description": "True on your first placement during early access."
          },
          "total": {
            "type": "integer",
            "description": "price + fee. In USD cents."
          },
          "currency": {
            "type": "string",
            "const": "usd"
          },
          "requires_approval": {
            "type": "boolean",
            "description": "True if total is above the key's approval amount."
          },
          "test": {
            "type": "boolean"
          },
          "expires_at": {
            "type": "string",
            "description": "15 minutes after creation.",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "examples": [
          {
            "id": "q_CmnYykYauJPSSMO9",
            "object": "quote",
            "listing_id": "pg_011.listicle",
            "workspace_id": "ws_ledgerly",
            "page_url": "https://ledgerlab.co/best-accounting-software",
            "type": "listicle",
            "price": 98000,
            "fee": 19600,
            "fee_waived": false,
            "total": 117600,
            "currency": "usd",
            "requires_approval": true,
            "test": true,
            "expires_at": "2026-12-04T20:36:00.139Z",
            "created_at": "2026-12-04T20:21:00.142Z"
          }
        ]
      },
      "OrderCreate": {
        "type": "object",
        "required": [
          "quote_id"
        ],
        "properties": {
          "quote_id": {
            "type": "string"
          }
        }
      },
      "OrderCancel": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string"
          }
        }
      },
      "Order": {
        "type": "object",
        "required": [
          "id",
          "object",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^ord_"
          },
          "object": {
            "const": "order"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending_approval",
              "awaiting_publisher",
              "counter_offer",
              "in_progress",
              "draft_review",
              "delivered",
              "verifying",
              "needs_fix",
              "verified",
              "completed",
              "disputed",
              "declined",
              "expired",
              "cancelled",
              "refunded",
              "partially_refunded",
              "removed"
            ]
          },
          "status_label": {
            "type": "string",
            "description": "Same words as in the app."
          },
          "workspace_id": {
            "type": "string"
          },
          "page_url": {
            "type": "string",
            "format": "uri"
          },
          "type": {
            "type": "string",
            "description": "Placement type.",
            "enum": [
              "inclusion",
              "listicle",
              "sponsored",
              "creator",
              "review"
            ]
          },
          "amount": {
            "type": "object",
            "properties": {
              "price": {
                "type": "integer",
                "description": "Publisher price. In USD cents."
              },
              "fee": {
                "type": "integer",
                "description": "Fee. In USD cents."
              },
              "total": {
                "type": "integer",
                "description": "Total. In USD cents."
              },
              "refunded": {
                "type": "integer",
                "description": "Refunded to your balance. In USD cents."
              },
              "currency": {
                "type": "string",
                "const": "usd"
              }
            }
          },
          "counter_offer": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "price": {
                    "type": "integer",
                    "description": "Proposed publisher price. In USD cents."
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "approval": {
            "type": "object",
            "properties": {
              "required": {
                "type": "boolean"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "approved",
                  "declined"
                ]
              },
              "approval_url": {
                "type": "string",
                "description": "Where an Owner or Admin approves.",
                "format": "uri"
              },
              "approved_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "created_by": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "user",
                  "api_key"
                ]
              },
              "key_id": {
                "type": "string"
              },
              "user_id": {
                "type": "string"
              }
            }
          },
          "live_url": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "verification": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string"
                  },
                  "checks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string"
                        },
                        "result": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "deadlines": {
            "type": "object",
            "properties": {
              "respond_by": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "due_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fix_by": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "issue_window_ends_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "live_until": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "at": {
                  "type": "string",
                  "format": "date-time"
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "question_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "test": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "examples": [
          {
            "id": "ord_HxjJun1HN6qL6sqe",
            "object": "order",
            "status": "verified",
            "status_label": "Live and verified",
            "workspace_id": "ws_ledgerly",
            "page_url": "https://ledgerlab.co/best-accounting-software",
            "type": "listicle",
            "amount": {
              "price": 98000,
              "fee": 19600,
              "total": 117600,
              "refunded": 0,
              "currency": "usd"
            },
            "counter_offer": null,
            "approval": {
              "required": true,
              "status": "approved",
              "approval_url": "https://amplevo.com/app/orders/ord_HxjJun1HN6qL6sqe",
              "approved_at": "2026-12-04T21:02:11.000Z"
            },
            "created_by": {
              "type": "api_key",
              "key_id": "key_d1qlZYMhPXRkWe8p"
            },
            "live_url": "https://ledgerlab.co/best-accounting-software#ledgerly",
            "verification": {
              "status": "passed",
              "checks": [
                {
                  "kind": "live",
                  "result": "pass"
                },
                {
                  "kind": "link",
                  "result": "pass"
                },
                {
                  "kind": "disclosure",
                  "result": "pass"
                }
              ]
            },
            "deadlines": {
              "respond_by": null,
              "due_at": null,
              "fix_by": null,
              "issue_window_ends_at": "2026-12-16T15:21:37.000Z",
              "live_until": "2027-12-09T15:21:37.000Z"
            },
            "timeline": [
              {
                "status": "pending_approval",
                "at": "2026-12-04T20:21:00.621Z",
                "note": "Booked. Waiting for an Admin's approval."
              },
              {
                "status": "awaiting_publisher",
                "at": "2026-12-04T21:02:11.000Z",
                "note": "Approved."
              },
              {
                "status": "in_progress",
                "at": "2026-12-05T08:40:00.000Z",
                "note": "Publisher accepted."
              },
              {
                "status": "delivered",
                "at": "2026-12-09T15:21:37.000Z",
                "note": "Live URL submitted."
              },
              {
                "status": "verified",
                "at": "2026-12-09T16:02:00.000Z",
                "note": "Checks passed."
              }
            ],
            "question_ids": [
              "ws_ledgerly_q02"
            ],
            "test": false,
            "created_at": "2026-12-04T20:21:00.546Z",
            "updated_at": "2026-12-09T16:02:00.000Z"
          }
        ]
      },
      "OrderList": {
        "type": "object",
        "required": [
          "object",
          "data",
          "has_more",
          "next_cursor"
        ],
        "properties": {
          "object": {
            "const": "list"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Order"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "QuestionCreate": {
        "type": "object",
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          }
        }
      },
      "TrackedQuestion": {
        "type": "object",
        "required": [
          "id",
          "object",
          "text",
          "workspace_id"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "object": {
            "const": "tracked_question"
          },
          "workspace_id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "cadence": {
            "type": "string",
            "const": "weekly"
          },
          "linked_order_id": {
            "anyOf": [
              {
                "type": "string",
                "description": "Booked placement that keeps it free."
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_run_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "latest": {
            "type": "object",
            "properties": {
              "mention_rate": {
                "type": "number"
              },
              "by_engine": {
                "type": "object",
                "properties": {
                  "chatgpt": {
                    "type": "string",
                    "enum": [
                      "cited",
                      "mentioned",
                      "absent"
                    ]
                  },
                  "perplexity": {
                    "type": "string",
                    "enum": [
                      "cited",
                      "mentioned",
                      "absent"
                    ]
                  },
                  "gemini": {
                    "type": "string",
                    "enum": [
                      "cited",
                      "mentioned",
                      "absent"
                    ]
                  },
                  "claude": {
                    "type": "string",
                    "enum": [
                      "cited",
                      "mentioned",
                      "absent"
                    ]
                  }
                }
              }
            }
          }
        },
        "examples": [
          {
            "id": "q_saZgA1xoZwK00m9d",
            "object": "tracked_question",
            "workspace_id": "ws_northpay",
            "text": "best payroll software for startups",
            "active": true,
            "cadence": "weekly",
            "linked_order_id": null,
            "last_run_at": "2026-12-04T20:21:10.250Z",
            "latest": {
              "by_engine": {
                "chatgpt": "absent",
                "perplexity": "absent",
                "gemini": "cited",
                "claude": "cited"
              },
              "mention_rate": 0.5
            },
            "created_at": "2026-12-04T20:21:07.272Z"
          }
        ]
      },
      "TrackedQuestionList": {
        "type": "object",
        "required": [
          "object",
          "data",
          "has_more",
          "next_cursor"
        ],
        "properties": {
          "object": {
            "const": "list"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrackedQuestion"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "VisibilityReport": {
        "type": "object",
        "properties": {
          "object": {
            "const": "visibility_report"
          },
          "workspace_id": {
            "type": "string"
          },
          "from": {
            "type": "string",
            "format": "date"
          },
          "to": {
            "type": "string",
            "format": "date"
          },
          "questions": {
            "type": "integer"
          },
          "runs": {
            "type": "integer"
          },
          "simulated": {
            "type": "boolean",
            "description": "True while live AI checks run in test mode."
          },
          "mention_rate": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "change_pts": {
            "type": "number",
            "description": "Change in percentage points over the period."
          },
          "by_engine": {
            "type": "object",
            "properties": {
              "chatgpt": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "perplexity": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "gemini": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "claude": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            }
          },
          "series": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "week": {
                  "type": "string",
                  "format": "date"
                },
                "mention_rate": {
                  "type": "number"
                }
              }
            }
          },
          "placements_live": {
            "type": "integer"
          }
        },
        "examples": [
          {
            "object": "visibility_report",
            "workspace_id": "ws_northpay",
            "from": "2026-10-09",
            "to": "2026-12-04",
            "questions": 8,
            "runs": 228,
            "simulated": false,
            "mention_rate": 0.25,
            "change_pts": 27,
            "by_engine": {
              "chatgpt": 0.39,
              "perplexity": 0.25,
              "gemini": 0.14,
              "claude": 0.23
            },
            "series": [
              {
                "week": "2026-10-12",
                "mention_rate": 0.14
              },
              {
                "week": "2026-10-19",
                "mention_rate": 0.18
              },
              {
                "week": "2026-10-26",
                "mention_rate": 0.21
              },
              {
                "week": "2026-11-02",
                "mention_rate": 0.21
              },
              {
                "week": "2026-11-09",
                "mention_rate": 0.25
              },
              {
                "week": "2026-11-16",
                "mention_rate": 0.29
              },
              {
                "week": "2026-11-23",
                "mention_rate": 0.29
              },
              {
                "week": "2026-11-30",
                "mention_rate": 0.41
              }
            ],
            "placements_live": 3
          }
        ]
      },
      "KeyLimits": {
        "type": "object",
        "description": "The calling key's limits. null = no limit.",
        "properties": {
          "max_per_order": {
            "anyOf": [
              {
                "type": "integer",
                "description": "Max order total. In USD cents."
              },
              {
                "type": "null"
              }
            ]
          },
          "monthly_cap": {
            "anyOf": [
              {
                "type": "integer",
                "description": "Monthly cap (bookings + paid tracking). In USD cents."
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_above": {
            "anyOf": [
              {
                "type": "integer",
                "description": "Totals above this wait for an Admin. In USD cents."
              },
              {
                "type": "null"
              }
            ]
          },
          "spent_this_month": {
            "type": "integer",
            "description": "Spent by this key this month. In USD cents."
          },
          "remaining_this_month": {
            "anyOf": [
              {
                "type": "integer",
                "description": "Left under the monthly cap. In USD cents."
              },
              {
                "type": "null"
              }
            ]
          },
          "workspaces": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Balance": {
        "type": "object",
        "properties": {
          "object": {
            "const": "balance"
          },
          "currency": {
            "type": "string",
            "const": "usd"
          },
          "test": {
            "type": "boolean",
            "description": "True for test keys (separate test balance)."
          },
          "available": {
            "type": "integer",
            "description": "Available. In USD cents."
          },
          "reserved": {
            "type": "integer",
            "description": "Reserved for open orders. In USD cents."
          },
          "tracking": {
            "type": "object",
            "properties": {
              "active_questions": {
                "type": "integer"
              },
              "free_questions": {
                "type": "integer"
              },
              "free_left": {
                "type": "integer"
              },
              "monthly_cost": {
                "type": "integer",
                "description": "Monthly tracking cost. In USD cents."
              },
              "per_question_month": {
                "type": "integer",
                "description": "Price per extra question per month. In USD cents."
              }
            }
          },
          "limits": {
            "$ref": "#/components/schemas/KeyLimits"
          }
        },
        "examples": [
          {
            "object": "balance",
            "currency": "usd",
            "test": false,
            "available": 1842000,
            "reserved": 117600,
            "tracking": {
              "active_questions": 30,
              "free_questions": 5,
              "free_left": 0,
              "monthly_cost": 1150,
              "per_question_month": 50
            },
            "limits": {
              "max_per_order": 150000,
              "monthly_cap": 500000,
              "approval_above": 100000,
              "spent_this_month": 117600,
              "remaining_this_month": 382400,
              "workspaces": [
                "ws_northpay",
                "ws_ledgerly"
              ]
            }
          }
        ]
      },
      "Event": {
        "type": "object",
        "required": [
          "id",
          "object",
          "type",
          "created_at",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^evt_"
          },
          "object": {
            "const": "event"
          },
          "type": {
            "type": "string",
            "enum": [
              "order.pending_approval",
              "order.awaiting_publisher",
              "order.counter_offer",
              "order.in_progress",
              "order.draft_review",
              "order.delivered",
              "order.verifying",
              "order.needs_fix",
              "order.verified",
              "order.completed",
              "order.disputed",
              "order.declined",
              "order.expired",
              "order.cancelled",
              "order.refunded",
              "order.partially_refunded",
              "order.removed",
              "tracking.run_completed",
              "balance.low",
              "webhook.test"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "livemode": {
            "type": "boolean"
          },
          "org_id": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "object": {
                "type": "object"
              }
            }
          }
        },
        "examples": [
          {
            "id": "evt_7Qa9Lm2Xc81Fz2Pq",
            "object": "event",
            "type": "order.verified",
            "created_at": "2026-12-09T16:02:00.000Z",
            "livemode": true,
            "org_id": "org_brightline",
            "data": {
              "object": {
                "id": "ord_HxjJun1HN6qL6sqe",
                "object": "order",
                "status": "verified",
                "workspace_id": "ws_ledgerly",
                "type": "listicle",
                "page_url": "https://ledgerlab.co/best-accounting-software",
                "amount": {
                  "price": 98000,
                  "fee": 19600,
                  "total": 117600,
                  "currency": "usd"
                },
                "created_by_key": "key_d1qlZYMhPXRkWe8p",
                "test": false,
                "updated_at": "2026-12-09T16:02:00.000Z",
                "message": "Checks passed."
              }
            }
          }
        ]
      }
    },
    "responses": {
      "BadRequest": {
        "description": "invalid_input",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "insufficient_balance",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "forbidden or needs_approval",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "not_found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Conflict": {
        "description": "invalid_state (details.reason: quote_used, quote_expired, mode_mismatch)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unprocessable": {
        "description": "over_order_cap, over_monthly_cap, over_workspace_limit, self_booking, not_available",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "rate_limited",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            },
            "description": "Seconds to wait."
          }
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key: amp_live_… or amp_test_…. Scopes: read, track, book."
      }
    }
  }
}