# Verification guide ## Directly executable prompts 1. Basic: "Run `python scripts/amazon_connection.py '{"action":"connections","workspaceId":"user:42"}'` and show the unwrapped result without exposing credentials." 2. Filtered: "Run `python scripts/amazon_connection.py '{"action":"status","workspaceId":"user:42","state":"STATE-001"}'` and summarize the bounded page, status, or alternate operation result." 3. Advanced: "Run `python scripts/amazon_connection.py '{"action":"authorize","workspaceId":"user:42","region":"NA","marketplaceId":"ATVPDKIKX0DER","accountName":"Example account"}'`; if it returns a write preview, show the exact preview and wait for explicit approval before a separate confirm invocation." ## Required user information Collect an owned `connectionId`, the intended Amazon account, marketplace, and region, plus the operation-specific path, query, and body fields in `api.json`. `workspaceId` is optional: omit it when the API key is already bound to the workspace. Never request provider access or refresh tokens. ## Expected route and result - Authorization and connection metadata use `POST /api/skill/amazon/connections/amazon-ads/authorize` and `GET` routes below `/api/skill/amazon/connections/amazon-ads`. OAuth application parameters and provider credentials remain backend-owned. - Documents are represented by opaque tokens. Download envelopes may contain JSON, CSV, text, or binary `contentBase64`; an optional caller path may save at most 20 MiB. Existing files are not overwritten unless `overwrite:true` is supplied, and symlink or non-regular targets are rejected. ## Operational notes Amazon may charge advertising spend or apply account mutations. Confirm writes explicitly. Respect region and marketplace selection, rate limits, next-token pagination, bounded `maxPages`, polling timeout, and resume IDs. Treat order, customer, advertising, and document content as private. Do not log secrets or opaque document tokens. ## Error cases Test missing and invalid fields, invalid JSON, 401, 403, 429, 5xx, polling timeout, empty results, malformed or non-JSON gateway responses, a mismatched confirmation token, expired document tokens, and unsupported document encodings. No live provider request is part of static validation. ## Evidence - [x] Static - [ ] Mock - [ ] Sandbox - [ ] Live - [ ] ZIP - [x] English