pcific 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +50 -2
  3. package/dist/SKILL.md +127 -0
  4. package/dist/api/catalog.js +637 -0
  5. package/dist/api/run.js +960 -0
  6. package/dist/api/search.js +171 -0
  7. package/dist/api/shortcuts.js +799 -0
  8. package/dist/bin.js +648 -0
  9. package/dist/commands/auth.js +513 -0
  10. package/dist/commands/doctor.js +410 -0
  11. package/dist/commands/init.js +306 -0
  12. package/dist/commands/sync.js +214 -0
  13. package/dist/detect.js +214 -0
  14. package/dist/env.js +339 -0
  15. package/dist/goLive.js +629 -0
  16. package/dist/keyLink.js +305 -0
  17. package/dist/mcp/server.js +206 -0
  18. package/dist/mcp/tools.js +689 -0
  19. package/dist/python/template.js +793 -0
  20. package/dist/schema/discover.js +324 -0
  21. package/dist/schema/helpers.js +396 -0
  22. package/dist/schema/prismaToJsonSchema.js +197 -0
  23. package/dist/schema/push.js +570 -0
  24. package/dist/schema/tsToJsonSchema.js +405 -0
  25. package/dist/schema/zodToJsonSchema.js +442 -0
  26. package/dist/templates/openapi.json +1 -0
  27. package/dist/templates/sdk/auth.ts +139 -0
  28. package/dist/templates/sdk/client.ts +1059 -0
  29. package/dist/templates/sdk/errors.ts +76 -0
  30. package/dist/templates/sdk/generated-types.ts +5746 -0
  31. package/dist/templates/sdk/http.ts +359 -0
  32. package/dist/templates/sdk/index.ts +84 -0
  33. package/dist/templates/sdk/json.ts +24 -0
  34. package/dist/templates/sdk/kit.ts +516 -0
  35. package/dist/templates/sdk/multipart.ts +99 -0
  36. package/dist/templates/sdk/sse.ts +131 -0
  37. package/dist/templates/sdk/verify.ts +766 -0
  38. package/dist/templates/sdk-js/auth.d.ts +20 -0
  39. package/dist/templates/sdk-js/auth.js +85 -0
  40. package/dist/templates/sdk-js/client.d.ts +324 -0
  41. package/dist/templates/sdk-js/client.js +607 -0
  42. package/dist/templates/sdk-js/errors.d.ts +51 -0
  43. package/dist/templates/sdk-js/errors.js +48 -0
  44. package/dist/templates/sdk-js/generated-types.d.ts +5736 -0
  45. package/dist/templates/sdk-js/generated-types.js +5 -0
  46. package/dist/templates/sdk-js/http.d.ts +50 -0
  47. package/dist/templates/sdk-js/http.js +263 -0
  48. package/dist/templates/sdk-js/index.d.ts +9 -0
  49. package/dist/templates/sdk-js/index.js +7 -0
  50. package/dist/templates/sdk-js/json.d.ts +11 -0
  51. package/dist/templates/sdk-js/json.js +16 -0
  52. package/dist/templates/sdk-js/kit.d.ts +220 -0
  53. package/dist/templates/sdk-js/kit.js +208 -0
  54. package/dist/templates/sdk-js/multipart.d.ts +23 -0
  55. package/dist/templates/sdk-js/multipart.js +61 -0
  56. package/dist/templates/sdk-js/sse.d.ts +12 -0
  57. package/dist/templates/sdk-js/sse.js +99 -0
  58. package/dist/templates/sdk-js/verify.d.ts +114 -0
  59. package/dist/templates/sdk-js/verify.js +506 -0
  60. package/dist/templates.js +925 -0
  61. package/dist/ui.js +399 -0
  62. package/dist/webhooks/events.js +171 -0
  63. package/dist/webhooks/listen.js +772 -0
  64. package/package.json +32 -4
@@ -0,0 +1 @@
1
+ {"openapi":"3.1.0","info":{"title":"PCIFIC API","version":"1","description":"Every endpoint in these docs is Stable. A Stable endpoint only gains optional request fields and new response fields, so your code should ignore fields it does not know. For Safeguard, Orbit and Ask PCIFIC, anything that would break an integration (a renamed or removed field, a changed unit, a stricter rule) ships as a new numbered release. An older release keeps working for 90 days after the first newer release is published. Your update policy (latest, patches or pinned) decides whether your account moves to the newer release. This release policy covers those three tools only (see the Releases guide). For PixelTrace and shared account endpoints, breaking changes are announced in the changelog, with the old behaviour available for at least 90 days and a stated retirement date.\n\nShops: Your business can run more than one shop. Each shop has its own shared and tool settings, listing fields, documents, PixelTrace photos, spending limits, usage, logs and shared daily test allowance (shared by its test keys and dashboard test Dispute Packs), and nothing of one shop is visible to another shop's calls. Your API keys, team, credit balance, billing, privacy tiers, own AI model, tool releases, saved daily test cap and PixelTrace code letters belong to the whole business. One key works for every shop: name the shop with ?marketplaceId=<id> on every call, whatever the method. GET /api/v1/marketplaces lists your shops and their ids. While your business has one shop you may leave marketplaceId out. Once it has more than one, a call from a whole-business key that needs a shop and names none is refused with 400 MARKETPLACE_ID_REQUIRED; PCIFIC never guesses. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Usage, analytics and the monitoring summary cover every shop together when no shop is named.\n\nFor JSON tool requests, we recommend sending Content-Type: application/json; requests without it are read as JSON. The same input validation, work limits and charging rules apply with or without the header.\n\nEvery API response includes X-Request-Id. Every error body includes the same value as requestId. This opaque UUID is the Request ID you can search on the dashboard Logs page. Recognised-key requests, including network limits and website refusals, are recorded when the backend and its logger are available. Refusal logging bounds key lookups and database concurrency; a logging outage or overload can leave an ID without a Logs row. Requests with no recognised key have no business to attach to Logs. A backend outage cannot be saved in Logs; quote its ID and time to support. RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset report an enforced request window, its requests left at the time it was checked, and seconds until it resets. If several windows were checked, the one with the fewest requests left is reported, choosing the earliest reset for a tie. Network, key, work-starting, sign-in, key-link and PixelTrace limits use their actual counters; a shop's shared daily test allowance (used by its test keys and dashboard test Dispute Packs) resets at midnight UTC. Sign-in reports its public network allowance; private per-email controls are not exposed. Rate headers are omitted on publicly cacheable responses, such as badges, so a shared cache cannot pass one network's allowance to another. Headers are also omitted when no public request allowance was checked, including disabled limits. They describe request counts, not credit balances or file size limits. Every request limit is counted in the database, shared by every PCIFIC server, so it holds whichever server answers and is not reset by a restart, and RateLimit-Remaining and RateLimit-Reset come from that shared count; PixelTrace and daily test counts are stored there too. If that shared count cannot be reached within 2 seconds, for example while the database is down, the server that answers counts on its own until it can.\n\nWhen calling from scripts, send a User-Agent header naming your app, for example User-Agent: MyMarketplace/1.0.\n\nRequest limits: Every /api/v1 address has these limits a minute: 120 requests per API key that start work (POST /api/v1/listings, /api/v1/safeguard/reviews, the answers and retry calls of both, /api/v1/ask-pcific, /api/v1/pixel-trace/captures), a separate 600 PixelTrace photo-check requests per API key (they do not use AI or the work-starting allowance), a separate 300 Message Check checks (POST /api/v1/message-check) per API key, of which one embed session, such as one buyer's <pcific-chat>, may use 30, 1,200 requests of any kind per API key (enough to read results back every few seconds; it only stops runaway loops), and 1,200 requests of any kind per network address (an IP address; IPv6 addresses count per /64). Dispute Pack calls, starting a dispute and writing its report again included, do not use the work-starting allowance; on a test key, a start or regenerate counts towards the daily test AI cap instead. Requests refused before work starts, including bad input, missing fields and wrong types, do not use the work-starting allowance or the daily test AI cap. They still count towards the general per-key and network request limits. Photo-check requests, including invalid photos, use their own allowance before the image is opened. PixelTrace also allows 600 group starts and checks combined per account per minute, across all its keys. One key can use the full 600 for checks when no groups are started; group starts still share the 120 work starts with other tools. Authentication failures still count towards the network limit. Past any of them the API answers 429 RATE_LIMITED, naming the exact limit reached, with a Retry-After header saying how many seconds to wait. Send requests one after another rather than all at once, and give each environment its own key.\n\nSafe retries: Send an optional Idempotency-Key on every public request that changes data or starts work: all POST, PUT and DELETE operations in the API reference, including Ask PCIFIC, PixelTrace checks, uploads, documents, settings and cancellations. Read-only GETs and the camera link validity check do not need one. Keys stay optional so existing integrations continue working; without a key, each call runs independently and a retry can repeat work and credits. Use 1 to 255 visible ASCII characters, such as a fresh UUID per action, and save it with the request before sending. Retry the same method, address (including query), body bytes and Content-Type within 24 hours to get the original successful status and body with Idempotent-Replayed: true, without more work or credits. Keep Accept and X-PCIFIC-Test-AI mode unchanged too. Upload retries must reuse the original bytes, including a multipart form's boundary. A different request with the same key returns 422 IDEMPOTENCY_KEY_REUSED with a next step. While work is running, 409 IDEMPOTENCY_KEY_IN_USE and Retry-After: 2 mean wait and retry with the same key. Keys belong to the shop the call is for and to test or live mode, shared across rotated API keys of that mode, so two shops of one business can use the same key without clashing. A call about no one shop, such as listing or adding shops, uses your business's own keys. Camera calls use a separate scope tied to the camera credentials; resend the original cookie and signed headers as well. Confirmation can replay with its original signature after the browser clears its cookie. Only successful replies are kept. A 4xx refusal is not saved. A replay of an accepted Orbit or Safeguard start returns the original 202 ticket. Poll the returned runId or reviewId for the current result. Refused requests and failures release the key, so fix the named problem and retry. An Ask PCIFIC stream is saved only when its done event arrives: retries replay all original events from the beginning, including done, without another answer or charge. Replace any partial answer in your interface when replaying. Work with a key continues after a dropped connection. Site-only demos and unavailable placeholder routes are outside this API contract.\n\nRequest signing: Optional for every tool. By default your API key alone works. An owner or admin can create one request signing secret for the business and switch signing on under API keys, Request signing on the dashboard, so a stolen API key alone is not enough. While it is on, every request made with any of your business's API keys, reads included, must carry PCIFIC-Signature: t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 over t, a dot, the method in capitals (GET, POST), a dot, the path you call, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes you send>, keyed with the secret as text. PCIFIC's ids, cursors and marketplaceId are plain letters, digits and dashes, so for them this is the address exactly as typed; percent-encode any other character in the query before signing. A GET signs an empty body. A signature cannot be moved to another method or address (401 SIGNATURE_INVALID). t must be within 300 seconds of PCIFIC's clock (401 SIGNATURE_EXPIRED). A POST, PUT or DELETE signature works once (409 SIGNATURE_REPLAYED); a GET signature may be reused at the same address inside its 5 minutes, so polling works. A retry needs a fresh signature, and with the same Idempotency-Key gets its saved answer. The seller link page (GET /api/v1/dispute-pack/seller/{token}, its /pdf and its /photos/{number}) is never signed. While signing is off the header is ignored, so add signing to your code first, then switch it on. Dashboard calls never need it. The header has the same form as PCIFIC's webhook signatures, which cover only t and the body."},"servers":[{"url":"https://business.pcific.ai"}],"paths":{"/api/v1/webhooks":{"get":{"operationId":"list-webhooks","summary":"List this shop's endpoints and supported event names. Signing secrets are never returned. Live keys may read; test keys need webhooks or read.","description":"Test key permission: \"webhooks\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"post":{"operationId":"create-webhook","summary":"Add a signed webhook endpoint for this shop. A test key with webhooks permission can register test receivers. Use the dashboard for live receivers; live keys cannot change setup.","description":"Test key permission: \"webhooks\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Exact public HTTPS endpoint URL, at most 2,048 bytes, on port 443 (no port in the address) or 8443. No credentials, private addresses or redirects."},"test":{"type":"boolean","description":"true for test results; false for live results. Cannot be changed on an existing endpoint."},"events":{"type":"array","items":{"type":"string","enum":["orbit.draft_ready","orbit.price_ready","orbit.safeguard_ready","orbit.finished","orbit.failed","safeguard.review_finished","pixeltrace.capture_ready","pixeltrace.capture_completed","ask.document_changed","message_check.flagged","dispute_pack.ready","dispute_pack.released","dispute_pack.email_problem"]},"description":"1 to 13 supported events from GET /webhooks eventTypes, each once.","minItems":1,"maxItems":13}},"required":["url","test","events"],"description":"The exact receiver URL, subscription environment and event names. See /docs/webhooks for event payloads and Node/Python signature checks.","additionalProperties":false}}}}}},"/api/v1/webhooks/{id}":{"get":{"operationId":"get-webhook","summary":"Read one of this shop's endpoints, in the same shape as an item in the list, plus deletedAt. A deleted endpoint still reads for the 30 days its delivery log is kept. Signing secrets are never returned. Same scope as listing webhooks. Test keys can read test endpoints only.","description":"Test key permission: \"webhooks\", or \"read\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"update-webhook","summary":"Edit the URL and event subscriptions. Existing queued deliveries use the current URL. Test key with webhooks permission only.","description":"Test key permission: \"webhooks\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Exact public HTTPS endpoint URL, at most 2,048 bytes, on port 443 (no port in the address) or 8443. No credentials, private addresses or redirects."},"test":{"type":"boolean","description":"true for test results; false for live results. Cannot be changed on an existing endpoint."},"events":{"type":"array","items":{"type":"string","enum":["orbit.draft_ready","orbit.price_ready","orbit.safeguard_ready","orbit.finished","orbit.failed","safeguard.review_finished","pixeltrace.capture_ready","pixeltrace.capture_completed","ask.document_changed","message_check.flagged","dispute_pack.ready","dispute_pack.released","dispute_pack.email_problem"]},"description":"1 to 13 supported events from GET /webhooks eventTypes, each once.","minItems":1,"maxItems":13}},"required":["url","test","events"],"description":"Send all three fields. The test field must match the existing endpoint's environment.","additionalProperties":false}}}}},"delete":{"operationId":"delete-webhook","summary":"Remove the endpoint and cancel pending deliveries. Its delivery log stays readable for 30 days, and it is listed under deletedEndpoints until then. Test key with webhooks permission only.","description":"Test key permission: \"webhooks\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/webhooks/{id}/rotate-secret":{"post":{"operationId":"rotate-webhook-secret","summary":"Replace the signing secret and show the new one once. New attempts, including retries, use it. A request in flight may use the previous one. Test key with webhooks permission only.","description":"Test key permission: \"webhooks\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/webhooks/{id}/test":{"post":{"operationId":"test-webhook","summary":"Queue webhook.test to this endpoint only. Delivery is asynchronous. Test key with webhooks permission only.","description":"Test key permission: \"webhooks\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/webhooks/{id}/deliveries/{deliveryId}/resend":{"post":{"operationId":"resend-webhook-delivery","summary":"Send one delivery's event again to this endpoint's current address: the same event, its id included, with a fresh timestamp and signature from the current secret. It is a new delivery, with its own deliveryId and resentFrom naming this one, retried like any other for 72 hours from now. The original is left as it was. Delivery is asynchronous. Test key with webhooks permission, for test endpoints only.","description":"Test key permission: \"webhooks\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"deliveryId","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/webhooks/{id}/deliveries":{"get":{"operationId":"webhook-deliveries","summary":"Read the newest 100 delivery outcomes for this shop's endpoint, including helpful failure messages. A resend is its own delivery, listed by when it was asked for. Works for an endpoint deleted in the last 30 days. Live keys may read; test keys need webhooks or read and can read test endpoints only.","description":"Test key permission: \"webhooks\", or \"read\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"An endpoint id from POST /api/v1/webhooks or GET /api/v1/webhooks.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/message-check":{"post":{"operationId":"check-message","summary":"Check one chat message before it is delivered, and get what to do with it: allow, mask_warn, confirm or block. One use of Message Check.","description":"Test key permission: \"message-check\".","tags":["Message Check"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, rate limits, rules and Logs run, with a stand-in answer built from the rules alone. Where saved retries are enabled, safe retries with an Idempotency-Key require the same X-PCIFIC-Test-AI mode; under True ZDR (zero data retention), Message Check bypasses the saved-response lookup and runs each request separately even with the same key and mode. No decision model call, charges or daily AI allowance. The response header echoes X-PCIFIC-Test-AI: stub, and decidedBy is test_stub when the stub makes the decision (a sender on the business's Message Check trusted list bypasses the check and returns decidedBy: trusted_sender even when the header is echoed). This tests integration throughput, not model quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"The text exactly as the sender typed it, 1 to 5,000 characters. Canonical field (send either text or legacy message; differing values are refused at /body/text)."},"message":{"type":"string","description":"Legacy alias for text, 1 to 5,000 characters. Kept for backwards compatibility."},"conversationId":{"type":"string","description":"Your id for the conversation, up to 200 characters. Leave it out for a first message."},"sender":{"type":"object","description":"{id, accountCreatedAt or accountAgeDays, completedOrders}.","properties":{"id":{"type":"string","description":"Your id for the sender. Kept only as a keyed hash; never sent to the model."},"accountCreatedAt":{"type":"string","description":"When the sender's account was made, ISO 8601."},"accountAgeDays":{"type":"number","description":"Or the account's age in days."},"completedOrders":{"type":"integer","description":"Orders the sender has completed."}}},"context":{"type":"object","description":"{orderPlaced, recentMessages}.","properties":{"orderPlaced":{"type":"boolean","description":"true once this conversation has a purchase or booking."},"recentMessages":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The earlier message, 1 to 1,000 characters. Cut a longer one to its last 1,000."},"fromSender":{"type":"boolean","description":"true when this sender wrote it, false when the other person did."}},"required":["text","fromSender"]},"description":"Up to 5 messages just before this one, oldest first, so a reply is read in context. Their details are hidden the same way before the decision model reads them, and they are never stored."}}},"confirmToken":{"type":"string","description":"The token from a confirm answer, when the sender chose to send anyway. Valid for 10 minutes and only for the same message."},"metadata":{"type":"object","description":"Up to 2 KB, echoed back and never stored.","additionalProperties":true}},"description":"The message exactly as typed (send text; message is kept as a legacy alias), and what you know about the sender and conversation."}}}}}},"/api/v1/message-check/present":{"post":{"operationId":"present-messages","summary":"Where to mask and whether to warn, for messages you are about to show. Uses the saved verdict with any current trusted-sender or purchase exception. No AI runs and nothing is charged.","description":"Test key permission: \"message-check\".","tags":["Message Check"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"conversationId":{"type":"string","description":"Your id for the conversation."},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Your message id."},"text":{"type":"string","description":"The message text (canonical; message is accepted as a legacy fallback alias when text is omitted)."},"message":{"type":"string","description":"Legacy alias for messages.text when text is omitted. Differing values are refused."},"sender":{"type":"object","description":"The message's sender, as sent to the check: {id, accountCreatedAt or accountAgeDays, completedOrders}. A trusted user's message is shown as written.","properties":{"id":{"type":"string","description":"Your id for the sender, as sent to the check."},"accountCreatedAt":{"type":"string","description":"When the sender's account was made, ISO 8601."},"accountAgeDays":{"type":"number","description":"Or the account's age in days."},"completedOrders":{"type":"integer","description":"Orders the sender has completed."}}},"context":{"type":"object","description":"{orderPlaced}.","properties":{"orderPlaced":{"type":"boolean","description":"true once this conversation has a purchase or booking, so contact details are shown when your policy reveals them after a purchase."}}}},"required":["id"]},"description":"{id, text, sender, context}, 1 to 200."}},"required":["messages"],"description":"The messages on screen, up to 200."}}}}}},"/api/v1/message-check/receipts/verify":{"post":{"operationId":"verify-message-check-receipt","summary":"Verify a signed receipt from POST /api/v1/message-check (or from <pcific-chat>) before saving a message on your server. No AI runs and nothing is charged.","description":"Test key permission: \"message-check\".","tags":["Message Check"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"receipt":{"type":"string","description":"The receipt string returned by POST /api/v1/message-check or posted by <pcific-chat>."},"text":{"type":"string","description":"The exact message text your server is about to save. Canonical field (send either text or legacy message; differing values are refused at /body/text)."},"message":{"type":"string","description":"Legacy alias for text. Kept for backwards compatibility."},"conversationId":{"type":"string","description":"The conversation id used when the message was checked."},"senderId":{"type":"string","description":"The sender id used when the message was checked."},"maskedText":{"type":"string","description":"Required for a mask_warn receipt checked with enforcement on: save this text, not text/message. If sent, PCIFIC verifies it is exactly what Message Check produced."}},"required":["receipt"],"description":"Send the receipt alongside the message text (text canonical, message legacy alias), senderId and conversationId your server is about to save."}}}}}},"/api/v1/message-check/policy":{"get":{"operationId":"get-message-check-policy","summary":"Read this business's Message Check policy, or the defaults if it was never saved.","description":"Test key permission: \"settings\", or \"read\".","tags":["Message Check"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-message-check-policy","summary":"Replace the policy. Fields left out take their defaults. A live key cannot change it.","description":"Test key permission: \"settings\".","tags":["Message Check"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shadowMode":{"type":"boolean","description":"Flag only: check and flag, enforce nothing."},"checkoutPaymentMethods":{"type":"array","items":{"type":"string"},"description":"The ways to pay your own checkout takes, 1 to 20, each up to 40 characters. Default [\"cards\", \"PayPal\"]. Paying with these through checkout is ordinary chat; paying the other person directly is still paying elsewhere."},"rules":{"type":"object","description":"One action per content type.","properties":{"phone":{"type":"string","description":"allow, warn, mask, confirm or block."},"email":{"type":"string","description":"allow, warn, mask, confirm or block."},"links":{"type":"string","description":"allow, warn, mask, confirm or block."},"socialHandles":{"type":"string","description":"allow, warn, mask, confirm or block."},"cardBank":{"type":"string","description":"allow, warn, mask, confirm or block."},"addresses":{"type":"string","description":"allow, warn, mask, confirm or block."},"paymentElsewhere":{"type":"string","description":"allow, warn, mask, confirm or block."},"abuse":{"type":"string","description":"allow, warn, mask, confirm or block."}}},"conditions":{"type":"object","description":"newAccounts {enabled, maxAgeDays, rules}, relaxAfterCompletedOrder, revealContactAfterPurchase.","additionalProperties":true},"warnings":{"type":"object","description":"reader {enabled, title, body, label} and sender {enabled, title, body}. {shop} becomes shopName.","additionalProperties":true},"exceptions":{"type":"object","description":"domains, numbers, trustedUsers and phrases, up to 200 each.","additionalProperties":true},"customRules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Up to 40 lower-case letters, digits and underscores."},"question":{"type":"string","description":"A yes or no statement about the message, 10 to 300 characters."},"action":{"type":"string","description":"allow, warn, mask, confirm or block."}},"required":["id","question","action"]},"description":"Up to 10 rules. The decision model answers each one on every check."},"strictness":{"type":"string","description":"relaxed, balanced, strict or custom."},"thresholds":{"type":"object","description":"With strictness custom, each 0.05 to 0.99.","properties":{"contact":{"type":"number","description":"How sure the decision model must be, 0.05 to 0.99."},"payElsewhere":{"type":"number","description":"How sure the decision model must be, 0.05 to 0.99."},"labelConfidence":{"type":"number","description":"How sure the decision model must be, 0.05 to 0.99."},"customRule":{"type":"number","description":"How sure the decision model must be, 0.05 to 0.99."}}},"alerts":{"type":"object","description":"Email and webhook alerts.","properties":{"email":{"type":["string","null"],"description":"Where alert emails go, or null for none."},"webhook":{"type":"boolean","description":"Send message_check.flagged."},"on":{"type":"string","description":"blocks or all."}}},"shopName":{"type":"string","description":"The name in your warnings, 1 to 60 characters. Defaults to your business name."}},"description":"The whole policy, as GET returns it under policy."}}}}}},"/api/v1/message-check/flags":{"get":{"operationId":"list-message-check-flags","summary":"The review list: flagged messages from the last 90 days, newest first, with details hidden.","description":"Test key permission: \"message-check\", or \"read\".","tags":["Message Check"],"parameters":[{"name":"verdict","in":"query","required":false,"description":"mask_warn, confirm or block.","schema":{"type":"string"}},{"name":"review","in":"query","required":false,"description":"correct, wrong or none.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 100. Default 50.","schema":{"type":"integer"}},{"name":"before","in":"query","required":false,"description":"The next value from the previous page.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/message-check/flags/{id}/review":{"put":{"operationId":"review-message-check-flag","summary":"Mark a flag as the right call (correct) or the wrong call (wrong), or clear it with null.","description":"Test key permission: \"message-check\".","tags":["Message Check"],"parameters":[{"name":"id","in":"path","required":true,"description":"The id the address names.","schema":{"type":"string","format":"uuid"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"review":{"type":["string","null"],"description":"correct, wrong or null."}},"required":["review"],"description":"The review."}}}}}},"/api/v1/embed-sessions":{"post":{"operationId":"create-embed-session","summary":"Swap your secret API key for a short-lived embed session, from your own server, each time you render a page with a PCIFIC tag. Put the session in the tag's session attribute. It works only on the one page address it was made for, only for the tools it names, and stops when it expires or the key is revoked.","description":"Test key permission: \"orbit\" or \"safeguard\" or \"ask-pcific\" or \"pixel-trace\" or \"message-check\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"origin":{"type":"string","description":"The exact address of the page that shows the tag: scheme, name and port, with no path, such as https://your-shop.example. https, or http only for localhost."},"tools":{"type":"array","items":{"type":"string"},"description":"The tools the page shows, from orbit, safeguard, ask-pcific, pixel-trace and message-check. The key needs each one's permission. While Message Check is on True ZDR (or switching to True ZDR), a chat session may only include message-check; create a separate session for other tools."},"minutes":{"type":"integer","description":"How long the session lasts, 5 to 120. Default 60."},"chat":{"type":"object","description":"Required when message-check is in tools: server-verified sender and conversation facts locked onto the session so the browser cannot forge them.","properties":{"conversationId":{"type":"string","description":"Your id for the conversation, up to 200 characters."},"sender":{"type":"object","description":"The signed-in sender: {id, accountCreatedAt or accountAgeDays, completedOrders}.","properties":{"id":{"type":"string","description":"Required inside chat.sender. The signed-in user's id in your system."},"accountCreatedAt":{"type":"string","description":"When the sender's account was made, ISO 8601, up to 64 characters."},"accountAgeDays":{"type":"number","description":"Or the sender's account age in days."},"completedOrders":{"type":"integer","description":"Orders the sender has completed."}}},"orderPlaced":{"type":"boolean","description":"true once this conversation has a purchase or booking. Default false."}}}},"required":["origin","tools"],"description":"Fields not listed are ignored and named in warnings."}}}}}},"/api/v1/embed/branding":{"get":{"operationId":"get-embed-branding","summary":"How this shop's embedded tools look: its theme and logo. An embed session may read it too, which is how the tools on your pages pick it up.","description":"Test key permission: \"settings\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-embed-branding","summary":"Change how this shop's embedded tools look. Only the fields sent change: theme replaces the whole theme, logo: null removes the logo. Every page with a PCIFIC tag shows the change on its next load.","description":"Test key permission: \"settings\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"theme":{"type":"object","description":"The shop's look, exactly as saved. Every setting is optional; any left out uses PCIFIC Business's own look. {} is PCIFIC's look.","properties":{"mode":{"type":"string","description":"auto (follow each visitor), light or dark."},"accent":{"type":"string","description":"Buttons and highlights, a six-digit hex colour such as #e11d48."},"background":{"type":"string","description":"Background, six-digit hex."},"surface":{"type":"string","description":"Cards, six-digit hex."},"text":{"type":"string","description":"Text, six-digit hex. The tools make any text colour readable on its background (WCAG AA) when shown."},"mutedText":{"type":"string","description":"Secondary text, six-digit hex."},"border":{"type":"string","description":"Lines, six-digit hex."},"radius":{"type":"integer","description":"Corner radius in pixels, 0 to 32."},"font":{"type":"string","description":"business (PCIFIC's typefaces), inherit (a supported font from the page), Inter, Work Sans, Georgia, Arial, Verdana, Times New Roman, Courier New, system-ui, sans-serif, serif or monospace. Web fonts are bundled inside the tool frame."},"density":{"type":"string","description":"comfortable or compact."},"launcher":{"type":"object","description":"Ask's floating button.","properties":{"corner":{"type":"string","description":"bottom-right, bottom-left, top-right or top-left."},"offset":{"type":"integer","description":"Distance from the edge, 0 to 200 pixels."},"label":{"type":"string","description":"Button label, up to 40 characters."}}}}},"logo":{"type":["string","null"],"description":"A PNG as data:image/png;base64,..., up to 512 KB, 32 to 4096 pixels, with a transparent background. null removes it."},"logoTransparencyConfirmed":{"type":"boolean","description":"true to keep a transparent logo PCIFIC's check misjudged."}},"description":"Up to 768 KB. Fields not listed are ignored and named in warnings."}}}}}},"/api/v1/embed/branding/scan":{"post":{"operationId":"scan-embed-branding","summary":"Read colours, corners and font from your own CSS or home page, and suggest a theme. Nothing is saved. PCIFIC reads only public https pages and up to four of their stylesheets.","description":"Test key permission: \"settings\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Your shop's public home page, starting https://."},"css":{"type":"string","description":"Your CSS, up to 200 KB, such as your :root variables and button styles."}},"description":"Send url or css, not both."}}}}}},"/api/v1/marketplaces":{"get":{"operationId":"list-marketplaces","summary":"Your business's shops, oldest first. Every key may call it, so an integration can find the marketplaceId to send.","description":"Every key may call it.","tags":["Account"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"post":{"operationId":"create-marketplace","summary":"Add a shop, from scratch or as a one-time copy of chosen parts of one of your shops. After the copy the two shops are independent: changing one never changes the other. A live key cannot add shops.","description":"Test key permission: \"settings\".","tags":["Account"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The shop's name, 1 to 80 characters, not already another of your shops' names."},"copyFrom":{"type":"string","description":"The id of one of your shops to copy from. Leave it out to start from scratch."},"copy":{"type":"array","items":{"type":"string"},"description":"The parts to copy: safeguard, orbit, ask-pcific, pixel-trace (each tool's settings, its rules and behaviour), marketplace (the shared shop settings), listing-fields (the working copy and every published version) and documents (Ask PCIFIC's documents with their versions)."}},"required":["name"],"description":"name, and to copy, copyFrom with the id of the shop to copy and copy with the parts. copy left out with copyFrom copies every part."}}}}}},"/api/v1/marketplaces/{id}":{"get":{"operationId":"get-marketplace","summary":"One of your shops.","description":"Test key permission: \"settings\", or \"read\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"A shop id from GET /api/v1/marketplaces.","schema":{"type":"string","format":"uuid"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"rename-marketplace","summary":"Rename a shop. Its id and everything in it stay the same.","description":"Test key permission: \"settings\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"A shop id from GET /api/v1/marketplaces.","schema":{"type":"string","format":"uuid"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The shop's name, 1 to 80 characters, not already another of your shops' names."}},"required":["name"],"description":"The new name."}}}}},"delete":{"operationId":"delete-marketplace","summary":"Delete a shop and everything that is only its own: its settings, listing fields, documents, photos, listings, reviews and spending limits. Its past charges stay in your business's credit history. Your last shop cannot be deleted. There is no undo.","description":"Test key permission: \"settings\".","tags":["Account"],"parameters":[{"name":"id","in":"path","required":true,"description":"A shop id from GET /api/v1/marketplaces.","schema":{"type":"string","format":"uuid"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/marketplace/settings":{"get":{"operationId":"get-marketplace-settings","summary":"The shop's settings every tool shares: the name they use for your shop, the language Orbit and Safeguard write in, your voice, and the AI notice sent with Ask PCIFIC's answers.","description":"Test key permission: \"settings\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-marketplace-settings","summary":"Change the shop's shared settings. Only the settings you send change.","description":"Test key permission: \"settings\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected":{"type":"object","description":"Optional settings snapshot from GET. For each setting being changed, its expected value must match the current value, or the request returns 409 SETTINGS_CONFLICT. Omit expected for an unconditional change.","properties":{"name":{"type":"string","description":"The name the tools use for you. Your shop's name until you set one."},"language":{"type":["string","null"],"description":"The language Orbit and Safeguard write in, or null to follow the listing."},"voice":{"type":"string","description":"One of PCIFIC's six voices: standard, warm, upbeat, formal, concise or reassuring."},"aiNotice":{"type":["string","null"],"description":"Sent with every Ask PCIFIC answer, or null for no notice."},"aiNoticeIsStandard":{"type":"boolean","description":"true while aiNotice is PCIFIC's standard notice."}}},"name":{"type":["string","null"],"description":"The name the tools use for your shop, up to 80 characters. Blank text is refused. Valid names are kept exactly as sent. null puts back your shop's name."},"language":{"type":["string","null"],"description":"The language Orbit and Safeguard write in, up to 60 characters, for example French. null or empty text follows the listing."},"voice":{"type":["string","null"],"description":"One of PCIFIC's six voices: standard, warm, upbeat, formal, concise or reassuring. null puts back standard."},"aiNotice":{"type":["string","null"],"description":"Sent with every Ask PCIFIC answer, up to 300 characters. null puts back PCIFIC's standard notice. Empty text sends no notice at all."}},"description":"Any of name (up to 80 characters), language (60), voice (one of six choices) and aiNotice (300). null puts a setting back: your shop's name, no language and the standard voice, or PCIFIC's standard notice. \"aiNotice\": \"\" sends no notice at all."}}}}}},"/api/v1/releases":{"get":{"operationId":"releases","summary":"Which release each AI tool (safeguard, orbit, ask-pcific) runs for your business, how it moves, every release, and the notices that apply. Every account starts at 2.0.0. Changed on the dashboard's Versions page only.","description":"Test key permission: \"read\", or \"read\".","tags":["Account"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/catalogue/status":{"get":{"operationId":"catalogue-status","summary":"How big your catalogue of listing categories is and how fresh: the newest published version of your listing fields.","description":"Test key permission: \"read\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/schema-draft/categories/{category}":{"put":{"operationId":"put-draft-category","summary":"Upload one category's JSON Schema file into the working copy, stored byte for byte. The category name is percent-encoded, so Vehicles/Cars is Vehicles%2FCars.","description":"Test key permission: \"listing-fields\".","tags":["Account"],"parameters":[{"name":"category","in":"path","required":true,"description":"A category name, percent-encoded, as in your listing fields, for example Phones. Vehicles/Cars is sent as Vehicles%2FCars.","schema":{"type":"string"}},{"name":"parent","in":"query","required":false,"description":"The main category this one sits under. Leave it out for a main category.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"description":"Customer-defined: the schema file itself, a JSON Schema (draft 2020-12) for one category, stored byte for byte with your own field names. Up to 10 MB. Every field needs a description of 1 to 2,000 characters.","additionalProperties":true}}}}},"get":{"operationId":"get-draft-category","summary":"Read one saved draft category's schema file, exactly as it was sent.","description":"Test key permission: \"listing-fields\", or \"read\".","tags":["Account"],"parameters":[{"name":"category","in":"path","required":true,"description":"A category name, percent-encoded, as in your listing fields, for example Phones. Vehicles/Cars is sent as Vehicles%2FCars.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"delete":{"operationId":"delete-draft-category","summary":"Remove a category from the working copy. Publish to make it count.","description":"Test key permission: \"listing-fields\".","tags":["Account"],"parameters":[{"name":"category","in":"path","required":true,"description":"A category name, percent-encoded, as in your listing fields, for example Phones. Vehicles/Cars is sent as Vehicles%2FCars.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/schema-draft":{"get":{"operationId":"get-draft","summary":"The working copy's saved categories and changes since the latest published version.","description":"Test key permission: \"listing-fields\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/schema-draft/export":{"get":{"operationId":"export-schema-draft","summary":"Export the draft with every category, parent and exact saved file text, up to 16 MiB of saved files and category names.","description":"Test key permission: \"listing-fields\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/schema-versions/{version}/republish":{"post":{"operationId":"republish-schema-version","summary":"Publish an earlier version again as a new version. The draft and earlier versions stay unchanged.","description":"Test key permission: \"listing-fields\".","tags":["Account"],"parameters":[{"name":"version","in":"path","required":true,"description":"A published version number from GET /api/v1/schema-versions, for example 1.","schema":{"type":"integer"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/schema-versions":{"post":{"operationId":"publish-schema-version","summary":"Publish the working copy as the next numbered version. Versions never change; the tools use the newest.","description":"Test key permission: \"listing-fields\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"about":{"type":["string","null"],"description":"What the shop sells, in plain words, up to 2,000 characters. Saved as Orbit's about setting. null or empty text clears it."}},"description":"May be empty."}}}}},"get":{"operationId":"list-schema-versions","summary":"Every published version, newest first, and the newest version's categories.","description":"Test key permission: \"listing-fields\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/schema-versions/{version}":{"get":{"operationId":"get-schema-version","summary":"One version's categories.","description":"Test key permission: \"listing-fields\", or \"read\".","tags":["Account"],"parameters":[{"name":"version","in":"path","required":true,"description":"A published version number from GET /api/v1/schema-versions, for example 1.","schema":{"type":"integer"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/schema-versions/{version}/categories/{category}":{"get":{"operationId":"get-schema-version-category","summary":"One category's schema file in a version, exactly as it was sent.","description":"Test key permission: \"listing-fields\", or \"read\".","tags":["Account"],"parameters":[{"name":"version","in":"path","required":true,"description":"A published version number from GET /api/v1/schema-versions, for example 1.","schema":{"type":"integer"}},{"name":"category","in":"path","required":true,"description":"A category name, percent-encoded, as in your listing fields, for example Phones. Vehicles/Cars is sent as Vehicles%2FCars.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/usage":{"get":{"operationId":"usage","summary":"Your business's credit balance (shared by every shop), what each tool use costs, the shop's spending limits, this month's requests per tool and each shop's daily test AI allowance. For one shop when marketplaceId is sent (or you have one shop), for every shop together when it is not. Read this instead of guessing prices.","description":"Test key permission: \"read\", or \"read\".","tags":["Account"],"parameters":[{"name":"keyKind","in":"query","required":false,"description":"live or test; leave out for all requests.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Request range start as YYYY-MM-DD or ISO 8601; defaults to the start of this UTC month.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Request range end as YYYY-MM-DD (midnight UTC) or ISO 8601.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of one shop, from GET /api/v1/marketplaces, for that shop's figures only. Left out, the answer covers every shop of your business together (with one shop, that is the same). Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/monitoring/summary":{"get":{"operationId":"monitoring-summary","summary":"How your test and live requests went over the requested range (this UTC month by default), and how the AI work went for tools on full monitoring. For one shop when marketplaceId is sent, for every shop together when it is not.","description":"Test key permission: \"read\", or \"read\".","tags":["Account"],"parameters":[{"name":"keyKind","in":"query","required":false,"description":"live or test; leave out for all requests.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Start date: YYYY-MM-DD or ISO 8601 time with timezone. Defaults to the start of this UTC month.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"End date: YYYY-MM-DD (midnight UTC) or ISO 8601 time with timezone. Must be on or after from.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of one shop, from GET /api/v1/marketplaces, for that shop's figures only. Left out, the answer covers every shop of your business together (with one shop, that is the same). Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/spend-limits":{"get":{"operationId":"get-spend-limits","summary":"The shop's daily, weekly and monthly credit limits, and what each window has spent. Each shop has its own limits.","description":"Test key permission: \"settings\", or \"read\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-spend-limits","summary":"Set any of the shop's daily, weekly and monthly credit limits; null clears one. Once a window has spent its limit, that shop's requests from live keys that cost credits are refused with SPEND_LIMIT_REACHED until the window starts again (UTC) or the limit is raised. Your other shops carry on. Your owner and admins are emailed at 80% and at 100%, once per window, with the shop's name.","description":"Test key permission: \"settings\".","tags":["Account"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"daily":{"type":["string","integer","null"],"description":"Whole credits from 1 to 100,000,000, as a number (100) or the same digits as text (\"100\"). null, empty text \"\" or \"none\" means no limit."},"weekly":{"type":["string","integer","null"],"description":"Whole credits from 1 to 100,000,000, as a number (100) or the same digits as text (\"100\"). null, empty text \"\" or \"none\" means no limit."},"monthly":{"type":["string","integer","null"],"description":"Whole credits from 1 to 100,000,000, as a number (100) or the same digits as text (\"100\"). null, empty text \"\" or \"none\" means no limit."},"limits":{"type":"object","description":"The same windows inside an object, as GET answers them. When sent, windows at the top level are ignored.","properties":{"daily":{"type":["string","integer","null"],"description":"Whole credits from 1 to 100,000,000, as a number (100) or the same digits as text (\"100\"). null, empty text \"\" or \"none\" means no limit."},"weekly":{"type":["string","integer","null"],"description":"Whole credits from 1 to 100,000,000, as a number (100) or the same digits as text (\"100\"). null, empty text \"\" or \"none\" means no limit."},"monthly":{"type":["string","integer","null"],"description":"Whole credits from 1 to 100,000,000, as a number (100) or the same digits as text (\"100\"). null, empty text \"\" or \"none\" means no limit."}}}},"description":"Any of daily, weekly and monthly, at the top level or inside limits. A window left out does not change. null, an empty string or \"none\" clears it."}}}}}},"/api/v1/analytics":{"get":{"operationId":"analytics","summary":"What your business has used this month: spend by day and by week, totals per tool, request outcomes, recent failures, the shop's limits, your balance and what used it. For one shop when marketplaceId is sent, for every shop together when it is not, always with each shop's part.","description":"Test key permission: \"read\", or \"read\".","tags":["Account"],"parameters":[{"name":"keyKind","in":"query","required":false,"description":"live or test; leave out for all requests.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Start date as YYYY-MM-DD or ISO 8601; defaults to the start of this UTC month.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"End date as YYYY-MM-DD (midnight UTC) or ISO 8601.","schema":{"type":"string"}},{"name":"failures","in":"query","required":false,"description":"How many recent failures to return, 1 to 100. Default 20.","schema":{"type":"integer"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of one shop, from GET /api/v1/marketplaces, for that shop's figures only. Left out, the answer covers every shop of your business together (with one shop, that is the same). Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/logs":{"get":{"operationId":"list-request-logs","summary":"Read your business's request records. Both live and test keys must explicitly opt in to logs; read alone does not open logs. A shop-limited key sees only its own shop.","description":"Both live and test keys require the explicit logs scope. The read scope does not allow this address.","tags":["Account"],"parameters":[{"name":"keyKind","in":"query","required":false,"description":"live or test; omit for all requests.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"failed or succeeded; omit for both.","schema":{"type":"string"}},{"name":"tool","in":"query","required":false,"description":"orbit, safeguard, ask-pcific, pixel-trace, checkup, message-check, dispute-pack or other (setup and reads). Anything else is refused with 400 INVALID_REQUEST_FILTERS at /query/tool.","schema":{"type":"string"}},{"name":"requestId","in":"query","required":false,"description":"The complete requestId UUID from an API response. Searches all retained records when dates are omitted.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Inclusive YYYY-MM-DD or ISO 8601 time with timezone. Defaults to this month's start.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Inclusive YYYY-MM-DD or ISO 8601 time with timezone. A date means midnight UTC. Omit for now.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 100; default 50.","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Zero or more; default 0.","schema":{"type":"integer"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of one shop, from GET /api/v1/marketplaces, for that shop's figures only. Left out, the answer covers every shop of your business together (with one shop, that is the same). Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/logs/{requestId}":{"get":{"operationId":"get-request-log","summary":"Read one request's redacted contents using its requestId UUID, or its internal number. Locked, customer-held and True ZDR contents stay locked. A shop-limited key can only open its own shop's records.","description":"Both live and test keys require the explicit logs scope. The read scope does not allow this address.","tags":["Account"],"parameters":[{"name":"requestId","in":"path","required":true,"description":"The id the address names.","schema":{"type":"string","format":"uuid"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/logs/export":{"get":{"operationId":"export-request-logs","summary":"Download the dashboard's log columns as CSV. No sent or returned contents are included, including customer-held contents. Capped at 31 days and 10,000 rows; split larger exports into smaller date ranges. Both key kinds require explicit logs permission.","description":"Both live and test keys require the explicit logs scope. The read scope does not allow this address.","tags":["Account"],"parameters":[{"name":"keyKind","in":"query","required":false,"description":"live or test; omit for all requests.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"failed or succeeded; omit for both.","schema":{"type":"string"}},{"name":"tool","in":"query","required":false,"description":"orbit, safeguard, ask-pcific, pixel-trace, checkup, message-check, dispute-pack or other (setup and reads). Anything else is refused with 400 INVALID_REQUEST_FILTERS at /query/tool.","schema":{"type":"string"}},{"name":"requestId","in":"query","required":false,"description":"The complete requestId UUID from an API response. Searches all retained records when dates are omitted.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Inclusive YYYY-MM-DD or ISO 8601 time with timezone. Defaults to this month's start.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Inclusive YYYY-MM-DD or ISO 8601 time with timezone. A date means midnight UTC. Omit for now.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of one shop, from GET /api/v1/marketplaces, for that shop's figures only. Left out, the answer covers every shop of your business together (with one shop, that is the same). Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/key":{"get":{"operationId":"who-am-i","summary":"Which key this is, what it may do and, for a test key, how much of today's cap is left. Every key may call it, and it costs nothing.","description":"Every key may call it.","tags":["Account"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/me":{"get":{"operationId":"key-identity","summary":"Identify this key and its business without any extra permission. Never returns a secret or hash.","description":"Every key may call it.","tags":["Account"],"parameters":[{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/ask-pcific":{"post":{"operationId":"ask-pcific","summary":"Answer a customer's question from your documents, the item and, when allowed, the web. Send it from your server, never the customer's browser.","description":"Test key permission: \"ask-pcific\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","description":"The customer's question, 1 to 1,500 characters. Ask PCIFIC supports English only; other languages are not supported yet."},"quotes":{"type":"boolean","description":"Optional, false by default. Request at least one verified document quote when a document supports the answer. If the AI omits it, PCIFIC uses the first paragraph of a cited section. quoteAvailable tells you whether the answer includes a verified quote; no internal message is added to the buyer answer. Without true, quote blocks are optional."},"modelTier":{"type":["string","null"],"description":"standard (the default) or ultra-fast. Ultra Fast answers in about half a second instead of several, and a live use spends more credits: the Credits page in your dashboard shows how many. A use is charged as Ultra Fast only when Ultra Fast answered the whole request; otherwise Standard answers and it is charged as Standard. A business on its own AI key is answered by its own model. null is the same as leaving it out."},"conversationId":{"type":["string","null"],"description":"Leave it out, or send null, to start a new chat. Send the one from the last answer to carry on, so the AI sees the last 8 turns."},"buyer":{"type":["object","null"],"description":"The asking buyer, supplied by your shop server. A buyer is only accepted from your shop's server with your API key; a call from your shop's page with an embed session that sends buyer is refused with EMBED_SESSION_NOT_ALLOWED. Only accountId is accepted inside buyer; unknown keys return ASK_ACCOUNT_ID_INVALID, naming the key and what to send instead. null is the same as leaving it out.","properties":{"accountId":{"type":["string","null"],"description":"Opaque account id, never a name or username. 1 to 128 ASCII letters, digits, dots, colons, underscores or hyphens. Compared only in the backend, never sent to the AI. Sent to item lookup as the buyerAccountId query parameter, including get_item. null is the same as leaving it out."}}},"item":{"type":["object","null"],"description":"The item the customer is looking at: a listing, product, policy, property or booking. Only item.id is needed when item lookup is set up. null is the same as leaving it out.","properties":{"id":{"type":["string","integer","null"],"description":"Your own id for the item, text or a whole number, 1 to 128 characters, for example \"coat-8841\" or 8841. Requires listing lookup; otherwise the request is refused with ASK_ITEM_LOOKUP_NOT_CONFIGURED before AI work. A number is read as its digits. With lookup set up, PCIFIC looks the item up by this id and ignores every other item field. null is the same as leaving it out."},"type":{"type":["string","null"],"description":"Any word for what it is, such as listing or booking. Up to 40 characters. null leaves it out."},"title":{"type":["string","null"],"description":"Up to 300 characters. null leaves it out."},"url":{"type":["string","null"],"description":"Up to 2,000 characters. The AI sees it. PCIFIC never opens it. null leaves it out."},"reservedForAccountId":{"type":["string","null"],"description":"Opaque account id of the buyer holding the reservation, never a name or username. Same 1 to 128 character rules as buyer.accountId. Matching ids mean reserved for you; different ids mean unavailable, reserved by another buyer. An explicit null reservedForAccountId means not reserved. Otherwise, if either id is missing, ownership cannot be confirmed. Only the comparison result reaches the AI; neither id is returned. With neither id establishing a reservation, an explicit Available or Not reserved status means not reserved."},"price":{"type":"object","description":"Optional price, using the shared Orbit and Safeguard money format. For example {amount: 9575, currency: GBP} means £95.75 GBP. With lookup, return price at the top level of the lookup JSON. Only objects with exactly amount and currency use this contract; other shapes, including legacy {value, currency} objects, stay ordinary listing details.","properties":{"amount":{"type":"integer","description":"Nonnegative whole number in the currency's smallest unit, such as pence or cents. Never a decimal or text. Yen has no smaller unit."},"currency":{"type":"string","description":"Three letter currency code in capitals, for example GBP, USD or JPY. Ask displays the amount with that currency and never converts it."}},"required":["amount","currency"]},"details":{"type":["object","null"],"description":"Listing facts a customer might ask about, as names and values. Include item.details.status as text stating current availability. Reservation ownership comes only from comparing buyer.accountId with item.reservedForAccountId, never from seller wording. With item lookup, return status, reservedForAccountId and price at the top level of the lookup JSON. Seller wording cannot override your shop policy documents. Up to 60 entries. Each value is plain: text up to 2,000 characters, a number, true, false or null. The names are your own and are passed on exactly as sent. null for the whole object is the same as leaving it out.","additionalProperties":{"type":["string","number","boolean","null"],"description":"One listing fact under your own name for it, such as condition or status. Text up to 2,000 characters, a number, true, false or null."}}}}},"required":["question"],"description":"Fields not listed are ignored and named in warnings. The body is at most 16 KB."}}}}}},"/api/v1/ask-pcific/settings":{"get":{"operationId":"get-ask-pcific-settings","summary":"Ask PCIFIC's settings.","description":"Test key permission: \"settings\", or \"read\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]},"put":{"operationId":"put-ask-pcific-settings","summary":"Change the settings sent; the rest stay. null clears the three text settings.","description":"Test key permission: \"settings\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"false refuses every question with ASK_TURNED_OFF. Default true."},"webSearch":{"type":"boolean","description":"Whether the AI may search the web for general facts. Default true. false limits its supplied sources to your documents and the item."},"reviewMode":{"type":"string","description":"automatic (the default) puts a changed document live at once. approve_first holds each new version until an owner or admin approves it. Only an owner or admin can change this setting on the dashboard Documents page; API keys cannot change it."},"fallbackMessage":{"type":["string","null"],"description":"What a not_covered answer says, up to 500 characters. GET shows the standard message when you have not set one."},"supportLink":{"type":["string","null"],"description":"An https:// or mailto: link, up to 2,000 characters. Sent back with a not_covered answer."},"voice":{"type":["string","null"],"description":"Ask PCIFIC's voice: standard, warm, upbeat, formal, concise or reassuring. null uses your shop's voice."},"keepChats":{"type":"boolean","description":"Whether a chat is kept so follow-up questions work. Default true. false means each question stands alone and nothing about the chat is stored."}},"description":"Any of these."}}}}}},"/api/v1/ask-pcific/item-source":{"get":{"operationId":"get-item-source","summary":"Where Ask PCIFIC looks items up, never the header's value.","description":"Test key permission: \"settings\", or \"read\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]},"put":{"operationId":"put-item-source","summary":"Set the address Ask PCIFIC reads an item from by its id.","description":"Test key permission: \"settings\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"A public https:// address holding {id}, up to 2,000 characters."},"headerName":{"type":"string","description":"A header to send, for example an API key header."},"headerValue":{"type":"string","description":"Its value. Stored encrypted and never shown again."}},"required":["url"],"description":"The header's name and value go together or not at all."}}}}},"delete":{"operationId":"delete-item-source","summary":"Stop looking items up.","description":"Test key permission: \"settings\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/ask-pcific/item-source/test":{"post":{"operationId":"test-item-source","summary":"Look one item up, to check the address works. Shows exactly what the AI would see.","description":"Test key permission: \"settings\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":["string","integer"],"description":"One of your item ids, as text or a whole number, 1 to 128 characters."},"buyer":{"type":["object","null"],"description":"The asking buyer, supplied by your shop server. A buyer is only accepted from your shop's server with your API key; a call from your shop's page with an embed session that sends buyer is refused with EMBED_SESSION_NOT_ALLOWED. Only accountId is accepted inside buyer; unknown keys return ASK_ACCOUNT_ID_INVALID, naming the key and what to send instead. null is the same as leaving it out.","properties":{"accountId":{"type":["string","null"],"description":"Opaque account id, never a name or username. 1 to 128 ASCII letters, digits, dots, colons, underscores or hyphens. Compared only in the backend, never sent to the AI. Sent to item lookup as the buyerAccountId query parameter, including get_item. null is the same as leaving it out."}}}},"required":["id"],"description":"The item to look up."}}}}}},"/api/v1/ask-pcific/unanswered":{"get":{"operationId":"unanswered-questions","summary":"Questions nothing covered, newest first, so you know which documents to add.","description":"Test key permission: \"ask-pcific\", or \"read\".","tags":["Ask PCIFIC"],"parameters":[{"name":"limit","in":"query","required":false,"description":"1 to 200. Default 50. Other values return 400 INVALID_LIMIT.","schema":{"type":"integer"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/documents":{"get":{"operationId":"list-documents","summary":"Every document Ask PCIFIC answers from, and how much room is left.","description":"Test key permission: \"documents\", or \"read\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"post":{"operationId":"add-document","summary":"Add a document as pasted text, a web page PCIFIC checks for changes daily, or an uploaded file.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Up to 200 characters. Needed for pasted text. For a web address it is the page's own title when left out. For a file it is the file name without its ending. On PUT /content, leaving it out keeps the old title."},"text":{"type":"string","description":"The document's non-empty text. Short text is accepted; binary control characters are refused. Markdown headings (# Heading) split it into sections."},"tags":{"type":"array","items":{"type":"string"},"description":"Up to 5 different lowercase words, each 1 to 24 letters (a to z), for example [\"returns\", \"shipping\"]. Omitted tags default to [] on creation and keep existing tags on replacement. [] clears them."},"url":{"type":"string","description":"A public https address. PCIFIC copies it now and checks it daily. Send exactly one of text and url."}},"description":"Document admission is shared by API and dashboard uploads: eight in progress and 64 MiB of reserved input per server; two and 22 MiB per business, across all shops and keys. Content-Length reserves bytes before reading; without it the full 10 MiB plus 64 KiB request limit is reserved. Real streamed bytes are checked too. PDF reader waits stop after two seconds; an upload must arrive within 20 seconds. Busy responses carry Retry-After: 20. JSON with a title and text, or a title and url, or multipart/form-data with the file in a part named file. Fields not listed are ignored and named in warnings."}},"multipart/form-data":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Up to 200 characters. Needed for pasted text. For a web address it is the page's own title when left out. For a file it is the file name without its ending. On PUT /content, leaving it out keeps the old title."},"tags":{"type":"array","items":{"type":"string"},"description":"Up to 5 different lowercase words, each 1 to 24 letters (a to z), for example [\"returns\", \"shipping\"]. Omitted tags default to [] on creation and keep existing tags on replacement. [] clears them."},"file":{"type":"string","format":"binary","description":"A PDF, Word (.docx), web page (.html), Markdown (.md) or text (.txt) file, up to 10 MB. Parts named title and tags are optional. Send tags as a JSON array, for example [\"returns\", \"shipping\"]."}},"required":["file"],"description":"Document admission is shared by API and dashboard uploads: eight in progress and 64 MiB of reserved input per server; two and 22 MiB per business, across all shops and keys. Content-Length reserves bytes before reading; without it the full 10 MiB plus 64 KiB request limit is reserved. Real streamed bytes are checked too. PDF reader waits stop after two seconds; an upload must arrive within 20 seconds. Busy responses carry Retry-After: 20. JSON with a title and text, or a title and url, or multipart/form-data with the file in a part named file. Fields not listed are ignored and named in warnings."}}}}}},"/api/v1/documents/{id}":{"get":{"operationId":"get-document","summary":"One document with its sections and versions.","description":"Test key permission: \"documents\", or \"read\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"delete":{"operationId":"delete-document","summary":"Delete a document and every version of it.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/documents/{id}/content":{"put":{"operationId":"replace-document-content","summary":"Replace a document's content. title is optional and keeps the old one when left out.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Up to 200 characters. Needed for pasted text. For a web address it is the page's own title when left out. For a file it is the file name without its ending. On PUT /content, leaving it out keeps the old title."},"text":{"type":"string","description":"The document's non-empty text. Short text is accepted; binary control characters are refused. Markdown headings (# Heading) split it into sections."},"tags":{"type":"array","items":{"type":"string"},"description":"Up to 5 different lowercase words, each 1 to 24 letters (a to z), for example [\"returns\", \"shipping\"]. Omitted tags default to [] on creation and keep existing tags on replacement. [] clears them."},"url":{"type":"string","description":"A public https address. PCIFIC copies it now and checks it daily. Send exactly one of text and url."}},"description":"Document admission is shared by API and dashboard uploads: eight in progress and 64 MiB of reserved input per server; two and 22 MiB per business, across all shops and keys. Content-Length reserves bytes before reading; without it the full 10 MiB plus 64 KiB request limit is reserved. Real streamed bytes are checked too. PDF reader waits stop after two seconds; an upload must arrive within 20 seconds. Busy responses carry Retry-After: 20. JSON with a title and text, or a title and url, or multipart/form-data with the file in a part named file. Fields not listed are ignored and named in warnings."}},"multipart/form-data":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Up to 200 characters. Needed for pasted text. For a web address it is the page's own title when left out. For a file it is the file name without its ending. On PUT /content, leaving it out keeps the old title."},"tags":{"type":"array","items":{"type":"string"},"description":"Up to 5 different lowercase words, each 1 to 24 letters (a to z), for example [\"returns\", \"shipping\"]. Omitted tags default to [] on creation and keep existing tags on replacement. [] clears them."},"file":{"type":"string","format":"binary","description":"A PDF, Word (.docx), web page (.html), Markdown (.md) or text (.txt) file, up to 10 MB. Parts named title and tags are optional. Send tags as a JSON array, for example [\"returns\", \"shipping\"]."}},"required":["file"],"description":"Document admission is shared by API and dashboard uploads: eight in progress and 64 MiB of reserved input per server; two and 22 MiB per business, across all shops and keys. Content-Length reserves bytes before reading; without it the full 10 MiB plus 64 KiB request limit is reserved. Real streamed bytes are checked too. PDF reader waits stop after two seconds; an upload must arrive within 20 seconds. Busy responses carry Retry-After: 20. JSON with a title and text, or a title and url, or multipart/form-data with the file in a part named file. Fields not listed are ignored and named in warnings."}}}}}},"/api/v1/documents/{id}/tags":{"put":{"operationId":"set-document-tags","summary":"Set document tags without changing its source, text or approval status.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"},"description":"Up to 5 different lowercase words, each 1 to 24 letters (a to z). For example [\"returns\", \"shipping\"]."}},"required":["tags"],"description":"tags is required. [] clears the tags."}}}}}},"/api/v1/documents/{id}/refresh":{"post":{"operationId":"refresh-document","summary":"Check a website document now instead of waiting for the daily check. One manual attempt per document per minute, including failures. Unchanged pages are not reprocessed. Approve first keeps the approved text answering until approval.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/documents/{id}/unpublish":{"post":{"operationId":"unpublish-document","summary":"Stop using a document in answers, keeping its id and every saved version.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/documents/{id}/publish":{"post":{"operationId":"publish-document","summary":"Publish again with the same id and last approved text. Waiting versions still need dashboard approval.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/documents/{id}/versions/{versionId}":{"get":{"operationId":"get-document-version","summary":"One version's full text and sections.","description":"Test key permission: \"documents\", or \"read\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"versionId","in":"path","required":true,"description":"A version id from versions in GET /api/v1/documents/{id}.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"post":{"operationId":"decide-document-version","summary":"Dashboard only. Approve or reject a version waiting for a person. Every API key is refused with 403 DOCUMENT_DECISION_NEEDS_DASHBOARD; an owner or admin decides on the dashboard Documents page.","description":"Test key permission: \"documents\".","tags":["Ask PCIFIC"],"parameters":[{"name":"id","in":"path","required":true,"description":"A document id from POST /api/v1/documents or GET /api/v1/documents.","schema":{"type":"string","format":"uuid"}},{"name":"versionId","in":"path","required":true,"description":"A version id from versions in GET /api/v1/documents/{id}.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","description":"approve or reject."}},"required":["decision"],"description":"The decision, sent by the dashboard."}}}}}},"/api/v1/images":{"post":{"operationId":"upload-images","summary":"Upload up to 12 photos (JPEG, PNG or WebP), 15 MB each and 60 MB in all, for Orbit listings and Safeguard reviews. Send their ids with the listing or review. Photos are kept for 30 minutes.","description":"Test key permission: \"orbit\" or \"safeguard\".","tags":["Orbit"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"Content-Length","in":"header","required":false,"description":"Orbit photo uploads and PixelTrace checks and camera uploads share a photo capacity limit per server: 16 requests and 128 MB of uploaded bytes, with at most 2 requests and 64 MB per business across its shops and keys. These limits include receiving and processing. Content-Length reserves bytes before the body is read; without it the call reserves its maximum body size. Actual streamed bytes are counted too. Uploads must arrive within 120 seconds and wait at most 20 seconds for a photo worker. Public demos use separate capacity: 2 requests, 16 MB and one photo worker. Demo traffic cannot take paid photo places. A busy refusal does not save photos. Wait Retry-After seconds before sending the same upload again.","schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"photos":{"type":"array","items":{"type":"string","format":"binary","description":"Each photo is its own file part. The part names do not matter."},"description":"Each photo is its own file part. The part names do not matter."}},"required":["photos"],"description":"multipart/form-data, one file part per photo."}}}}}},"/api/v1/images/{id}":{"get":{"operationId":"get-image","summary":"One photo, with fresh links.","description":"Test key permission: \"orbit\" or \"safeguard\", or \"read\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"A photo id from POST /api/v1/images.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"delete":{"operationId":"delete-image","summary":"Delete a photo and its copies now.","description":"Test key permission: \"orbit\" or \"safeguard\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"A photo id from POST /api/v1/images.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/listings":{"post":{"operationId":"create-listing","summary":"Start an Orbit listing from the seller's notes, details and photos, written into your own listing fields. Answers 202 at once; read the listing every second while processing is true, even after the draft appears.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"type":["string","null"],"description":"The seller's own words about the item, up to 5,000 characters. The shop's notesMinLength and notesMaxLength apply even with details or images. With both unset, at least 4 characters are needed only without details or images. Their facts win over guesses. null is the same as leaving it out."},"details":{"type":["object","null"],"description":"Customer-defined: what your form already has from the seller, keyed by your own field names exactly as you send them, with any JSON values. Counts as the seller's words. null or {} is the same as leaving it out.","additionalProperties":true},"images":{"type":["array","null"],"items":{"type":"string"},"description":"Photo ids from POST /api/v1/images, at most 12. Photos are kept for 30 minutes. null is the same as leaving it out."},"category":{"type":["string","null"],"description":"The category's name in your newest published listing fields. Leave it out, or send null, and Orbit finds it."},"price":{"type":["boolean","null"],"description":"Leave it out, or send null, to follow the pricing setting. false skips the price check for this listing. true needs the pricing setting on (PRICING_OFF otherwise)."},"safeguard":{"type":["boolean","null"],"description":"true has Safeguard review the finished listing. Leave it out, or send null, to follow Safeguard's orbitDefault setting. true needs Safeguard on (SAFEGUARD_OFF otherwise)."},"faq":{"type":["boolean","null"],"description":"true has Safeguard write a buyer FAQ for the finished listing. Off unless asked for. Needs Safeguard on. null is the same as leaving it out."},"modelTier":{"type":["string","null"],"description":"standard (the default) or ultra-fast. Ultra Fast answers in about half a second instead of several, and a live use spends more credits: the Credits page in your dashboard shows how many. A use is charged as Ultra Fast only when Ultra Fast answered the whole request; otherwise Standard answers and it is charged as Standard. A business on its own AI key is answered by its own model. null is the same as leaving it out."},"listingRef":{"type":["string","null"],"description":"Your own id for this listing, 1 to 120 characters, kept exactly as sent and given back as listingRef with the listing and its Safeguard results. null is the same as leaving it out."},"editChat":{"type":["boolean","null"],"description":"true lets the seller ask for changes to the finished draft in words with POST /api/v1/listings/{runId}/chat. Off unless asked for. null is the same as leaving it out."}},"description":"At least one of notes, details or images. Keys that are not listed are ignored and named in warnings."}}}}}},"/api/v1/listings/{id}":{"get":{"operationId":"get-listing","summary":"Where the listing is. Kept 30 minutes after its last change. A failed listing carries the error it failed with. Send Accept: text/event-stream to stream updates until completion.","description":"Test key permission: \"orbit\", or \"read\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/listings/{id}/answers":{"post":{"operationId":"answer-listing-questions","summary":"Send the seller's answers to Orbit's questions. Answers 202; read the listing again for the result.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The id of a question in questions."},"answer":{"type":"string","description":"The seller's words, up to 1,000 characters. May be \"I don't know\"."}},"required":["id","answer"]},"description":"[{id, answer}]: the question's id and the seller's words, up to 1,000 characters each."}},"required":["answers"],"description":"Every answer in one request. A question left out counts as no answer."}}}}}},"/api/v1/listings/{id}/retry":{"post":{"operationId":"retry-listing","summary":"Try a failed listing again, from where its last stretch of work started (the request, or the seller's answers). Answers 202.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/listings/{id}/cancel":{"post":{"operationId":"cancel-listing","summary":"Stop a listing that is working, waiting for answers or failed, together with its Safeguard review, and delete its photos unless something else still uses them.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/listings/{id}/outcome":{"post":{"operationId":"report-listing-outcome","summary":"What the seller did with a finished listing. Kept only on the full monitoring privacy tier, once per listing, for 30 days. On other tiers it returns 409 MONITORING_OFF. Unknown run ids return 404.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"string","description":"published or abandoned."},"changes":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"The name of a field the seller changed, 1 to 256 characters. Each field once."},"percentChanged":{"type":"integer","description":"How much of it changed, a whole number from 0 to 100. Send 100 for a fixed choice that changed."}},"required":["field","percentChanged"]},"description":"With published: [{field, percentChanged}], at most 500."},"finalListing":{"type":["object","null"],"description":"Customer-defined: with published, the listing as it went live in your own field names, up to 200 KB. Send price amounts as whole numbers in pence, such as 4500 for £45. Decimal points, exponents and text amounts are refused. null is the same as leaving it out.","additionalProperties":true}},"required":["event"],"description":"published with what changed, or abandoned."}}}}}},"/api/v1/listings/{id}/publish":{"post":{"operationId":"publish-listing","summary":"Publish the newest version of a finished listing. When Safeguard reviews this listing, it reviews that exact version first: passed, the version goes live (the answered version says review: checking until then); issues, the listing stays unpublished with Safeguard's notes on the version. A listing without Safeguard goes live at once.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/listings/{id}/check":{"post":{"operationId":"check-listing","summary":"Check now: Safeguard reviews the newest version without publishing it. Answers 200 at once; the answered version says review: checking until the result is saved.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/listings/{id}/edits":{"post":{"operationId":"edit-listing","summary":"Save the whole listing as it is now as a new version, at once. A live listing stays live on the new version, and Safeguard reviews only the changed fields as the liveEdits setting says: auto reviews in the background, on_request waits for POST /api/v1/listings/{runId}/check, off records the version as unreviewed. A review still running on an older version is cancelled and never applied.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item":{"type":"object","description":"Customer-defined: the whole listing in your own field names, at most 50,000 characters as JSON.","additionalProperties":true}},"required":["item"],"description":"The whole listing, not only the changed fields."}}}}}},"/api/v1/listings/{id}/chat":{"post":{"operationId":"listing-edit-chat","summary":"The seller's edit chat, for a listing started with editChat: true. {message} asks for a change in words and answers {runId, reply, changes, tryThis} with the proposed change. {accept: true} saves the proposed change as a new version, with the chat messages, and answers like POST /api/v1/listings/{runId}/edits.","description":"Test key permission: \"orbit\".","tags":["Orbit"],"parameters":[{"name":"id","in":"path","required":true,"description":"The runId from POST /api/v1/listings.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"The seller's request, 1 to 1,000 characters."},"accept":{"type":"boolean","description":"true saves the proposed change as a new version."}},"description":"message, or accept."}}}}}},"/api/v1/orbit/settings":{"get":{"operationId":"get-orbit-settings","summary":"Orbit's settings.","description":"Test key permission: \"settings\", or \"read\".","tags":["Orbit"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-orbit-settings","summary":"Change the settings sent; the rest stay.","description":"Test key permission: \"settings\".","tags":["Orbit"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Orbit on or off."},"about":{"type":["string","null"],"description":"What the business sells, up to 2,000 characters."},"listingStyle":{"type":["string","null"],"description":"Listing style: standard, quick_scan, descriptive, spec_sheet, condition_first or premium. null restores standard."},"voice":{"type":["string","null"],"description":"One of PCIFIC's six voices: standard, warm, upbeat, formal, concise or reassuring. null uses your shop's voice."},"imageFormat":{"type":"string","description":"webp, avif or jpeg."},"imageSize":{"type":"integer","description":"The photo copies' longest side, 320 to 4096 pixels."},"previewSize":{"type":"integer","description":"The preview's longest side, 100 to 1024 pixels."},"pricing":{"type":"boolean","description":"The price check. false stops only the price research. Web research for listing details remains available and cannot be turned off, but a run can finish without a search when the supplied details are enough."},"currency":{"type":"string","description":"Three capital letters, such as GBP."},"notesMinLength":{"type":["integer","null"],"description":"Optional minimum notes length, 0 to 5,000 Unicode characters after trimming. Applies with photos or details too. null removes it. Must not exceed notesMaxLength. With both limits unset, the standard 4-character minimum applies only without photos or details."},"notesMaxLength":{"type":["integer","null"],"description":"Optional maximum notes length, 0 to 5,000 Unicode characters after trimming. Applies with photos or details too. null removes it. Must not be less than notesMinLength."}},"description":"Any of these."}}}}}},"/api/v1/safeguard/reviews":{"post":{"operationId":"create-review","summary":"Review a listing the way a careful buyer would, score it from 0 to 10, and optionally write a buyer FAQ or suggest new wording. Answers 202 at once, or send Accept: text/event-stream to stream updates until completion.","description":"Test key permission: \"safeguard\".","tags":["Safeguard"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":["string","null"],"description":"The listing's category, named as in the latest published version of your listing fields. Required, unless you send orbitRunId. null is the same as leaving it out."},"listing":{"type":["object","null"],"description":"Customer-defined: the listing in your own field names, exactly as you send them. null or left out only with orbitRunId, which supplies the listing. Up to 50,000 characters once written as JSON. Required, unless you send orbitRunId. Photo and listing-field problems are collected together. A value of the wrong type, or one outside a field's allowed options, is refused with a 400 error that names each field in problems. Required fields are judged, not validated. A missing required field is accepted (202); the judge flags it and can ask the seller. Safeguard asks for no field in particular: not even a title or a description.","additionalProperties":true},"images":{"type":["array","null"],"items":{"type":"string"},"description":"Up to 12 photo ids from POST /api/v1/images. At least one is required by default, including when using orbitRunId. A photo is kept for 30 minutes after upload. The same id twice counts once. null is the same as leaving it out."},"requirePhotos":{"type":["boolean","null"],"description":"Default true on POST /api/v1/safeguard/reviews, also when null. With no photos the request is refused before work, with no charge. Strongly recommended: keep photos on. Set false to allow a text-only request, for example for a service. Without photos results are less reliable and can vary more."},"sellerNotes":{"type":["string","null"],"description":"What the seller wrote or said about the item, up to 5,000 characters. It counts as the seller's own words. null is the same as leaving it out."},"orbitRunId":{"type":["string","null"],"description":"null is the same as leaving it out. The runId of a finished Orbit listing less than 30 minutes old. Its listing, category, photos and the seller's words are used. listing, category and images, when sent too, replace Orbit's. sellerNotes is added to what the seller told Orbit."},"review":{"type":["boolean","null"],"description":"true (the default, also when null) scores the listing and returns the fixes and questions. false leaves them out, so send faq or rewrite with it."},"faq":{"type":["boolean","null"],"description":"true adds 3 to 6 buyer questions and answers. Default false, also when null. The review keeps web search when enabled; FAQ answers never use web pages."},"rewrite":{"type":["boolean","array","null"],"items":{"type":"string"},"description":"true suggests new wording for /title and /description. Instead of true you can send a list of 1 to 5 field paths, each once and none inside a list, like [\"/title\"]. Default false."},"modelTier":{"type":["string","null"],"description":"standard (the default) or ultra-fast. Ultra Fast answers in about half a second instead of several, and a live use spends more credits: the Credits page in your dashboard shows how many. A use is charged as Ultra Fast only when Ultra Fast answered the whole request; otherwise Standard answers and it is charged as Standard. A business on its own AI key is answered by its own model. null is the same as leaving it out."},"listingRef":{"type":["string","null"],"description":"Your own id for this listing, 1 to 120 characters, kept exactly as sent and given back as listingRef with the review. With orbitRunId, the Orbit listing's listingRef is used unless you send one. null is the same as leaving it out."}},"description":"listing and category, or orbitRunId. Up to 256 KB."}}}}}},"/api/v1/safeguard/reviews/{id}":{"get":{"operationId":"get-review","summary":"Read the review: working, done or failed. A failed review is still HTTP 200, with error and retry. Kept 30 minutes after its last change. Send Accept: text/event-stream to stream updates until completion.","description":"Test key permission: \"safeguard\", or \"read\".","tags":["Safeguard"],"parameters":[{"name":"id","in":"path","required":true,"description":"The reviewId from POST /api/v1/safeguard/reviews.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/safeguard/reviews/{id}/answers":{"post":{"operationId":"answer-review-questions","summary":"Send the seller's answers; the listing is updated and reviewed again. Only when the review is done, at most 3 times. Answers 202.","description":"Test key permission: \"safeguard\".","tags":["Safeguard"],"parameters":[{"name":"id","in":"path","required":true,"description":"The reviewId from POST /api/v1/safeguard/reviews.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The id of a question in sellerQuestions."},"answer":{"type":"string","description":"The seller's words, up to 1,000 characters."}},"required":["id","answer"]},"description":"[{id, answer}]: the id of a question in sellerQuestions and the seller's words, up to 1,000 characters. A blank answer is stored as \"(no answer)\". Each id once."}},"required":["answers"],"description":"Every answer in one request. A question left out is stored as \"(no answer)\"."}}}}}},"/api/v1/safeguard/reviews/{id}/retry":{"post":{"operationId":"retry-review","summary":"Do a failed review again, from the same listing and answers. Only when the review failed. Answers 202.","description":"Test key permission: \"safeguard\".","tags":["Safeguard"],"parameters":[{"name":"id","in":"path","required":true,"description":"The reviewId from POST /api/v1/safeguard/reviews.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/safeguard/settings":{"get":{"operationId":"get-safeguard-settings","summary":"Safeguard's settings.","description":"Test key permission: \"settings\", or \"read\".","tags":["Safeguard"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-safeguard-settings","summary":"Change the settings sent; the rest stay.","description":"Test key permission: \"settings\".","tags":["Safeguard"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Safeguard on or off. Default true."},"minimumScore":{"type":"integer","description":"The score a listing needs for passed, 0 to 10. Default 7."},"webSearch":{"type":"boolean","description":"Whether the AI may search the web (at most 2 searches a review). Default true."},"bannedItems":{"type":"array","items":{"type":"string"},"description":"Up to 50 plain descriptions, each 1 to 200 characters, of what may not be listed. Plainly illegal items and scams are always banned."},"instructions":{"type":["string","null"],"description":"What your buyers care about, up to 2,000 characters. null clears it. It cannot change the scale."},"voice":{"type":["string","null"],"description":"One of PCIFIC's six voices: standard, warm, upbeat, formal, concise or reassuring. null uses your shop's voice."},"orbitDefault":{"type":"boolean","description":"Review every Orbit listing that does not say otherwise. Default false."},"verdicts":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":"string","description":"The verdict's name, shown to people."},"from":{"type":"integer","description":"The score it starts at, 0 to 10. The first verdict starts at 0."},"meaning":{"type":"string","description":"block, review or pass."}},"required":["name","from","meaning"]},"description":"2 to 5 verdicts, lowest first, each {name, from, meaning}. null puts back the standard three: High risk from 0 (block), Caution from 4 (review), Looks good from 7 (pass)."},"categoryVerdictStarts":{"type":["object","null"],"description":"A category's own start scores, one for each verdict, like {\"Art\": [0, 6, 9]}. Only categories in your latest published listing fields. {} or null for none.","additionalProperties":{"type":"array","items":{"type":"integer"},"description":"The category's start scores, one for each verdict, lowest first, starting at 0."}},"liveEdits":{"type":"string","description":"What happens when a live Orbit listing is edited: auto reviews only the changed fields at once, on_request waits for POST /api/v1/listings/{runId}/check, off records the edit as unreviewed. The listing stays live in every case. Default auto."}},"description":"Any of these."}}}}}},"/api/v1/dispute-pack/settings":{"get":{"operationId":"get-dispute-pack-settings","summary":"This shop's Dispute Pack settings: switched on or off, message mode, default seller sections and delivery, automation rules and retention.","description":"Test key permission: \"settings\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-dispute-pack-settings","summary":"Change this shop's Dispute Pack settings. Send all five settings: on, messageMode, defaultSections, defaultDelivery and rules. Live keys may read but not change settings. A key may switch Dispute Pack on but not off: switching it off is done on the dashboard, after confirming it is you.","description":"Test key permission: \"settings\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"on":{"type":"boolean","description":"Whether Dispute Pack stores evidence for this shop. Off by default. A key may set it to true; switching it off is done on the dashboard."},"messageMode":{"type":"string","description":"all (Keep every message on the dashboard) or snapshot_only (Only messages near a sale or dispute).","enum":["all","snapshot_only"]},"defaultSections":{"type":"array","items":{"type":"string","enum":["summary","listing","photos","chat","delivery","checks","timeline"]},"description":"Sections a one-click release sends: 1 to 7 of summary, listing, photos, chat, delivery, checks, timeline, each once.","minItems":1,"maxItems":7},"defaultDelivery":{"type":"string","description":"link or pdf.","enum":["link","pdf"]},"rules":{"type":"array","items":{"type":"object","properties":{"reasons":{"type":"array","items":{"type":"string","minLength":1,"maxLength":120},"description":"1 to 20 dispute reasons, each 1 to 120 characters, compared exactly. * matches every dispute.","minItems":1,"maxItems":20},"sections":{"type":["string","array"],"items":{"type":"string"},"description":"full, default, or a list of section names (summary, listing, photos, chat, delivery, checks, timeline)."},"delivery":{"type":"string","description":"link or pdf. A link rule needs PCIFIC seller emails switched on: a seller link is shown once, in the release answer, never in the dispute_pack.released webhook, so only an email PCIFIC sends gets a rule's link to the seller. Use pdf to forward the PDF from the webhook yourself.","enum":["link","pdf"]}},"required":["reasons","sections","delivery"],"additionalProperties":false},"description":"Automatic seller releases, 0 to 20, checked in order. The first matching rule wins, and releases each dispute at most once, at the first ready version it can release. Released original photos are kept byte for byte, exactly as you sent them, so a photo from a phone or camera may still hold where it was taken (location data). PCIFIC does not strip EXIF (the photo's metadata, which can include GPS coordinates) from the stored original, and a seller link lets the seller download each released original. Only the JPEG copies made for viewing and the photos drawn in the PDF are redrawn without it. Remove location data from a photo before you send it to PCIFIC if a seller should not see where it was taken.","maxItems":20},"retention":{"type":"object","description":"Optional: retention exactly as GET answers it. A changed value is 400 INVALID_FIELD; retention is changed on the dashboard.","additionalProperties":true},"sections":{"type":"array","items":{"type":"string"},"description":"Optional: sections exactly as GET answers it. A changed value is 400 INVALID_FIELD; the section names are fixed by PCIFIC."}},"required":["on","messageMode","defaultSections","defaultDelivery","rules"],"description":"Send on, messageMode, defaultSections, defaultDelivery and rules every time. retention and sections, which GET answers, may be sent back exactly as GET answers them right now; a changed value is 400 INVALID_FIELD at that field, naming where it is changed (retention on the dashboard). Any other field, at the top or in a rule, is 400 INVALID_FIELD at its own path, for example /body/rules/0/sendEmail, and nothing is saved. A rule's reasons refuse hidden and control characters at /body/rules/i/reasons/j, since they would never match a dispute's reason.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/emails":{"get":{"operationId":"get-dispute-pack-email-settings","summary":"This shop's email settings: whether PCIFIC sends emails for you, your design, what the emails say, the address they come from and the price per email.","description":"Test key permission: \"settings\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"put-dispute-pack-email-settings","summary":"Change this shop's email settings. Emails you send yourself with the suggested email are free; emails PCIFIC sends for you are a paid extra, charged only once each goes out. Live keys may read but not change settings.","description":"Test key permission: \"settings\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pcificSends":{"type":"boolean","description":"true lets PCIFIC send emails for you, a paid extra charged per email sent. Off by default. Turning it on requires the dashboard and a recent identity confirmation; an API key may turn it off, or send it as saved."},"teamReady":{"type":"boolean","description":"Email your team when a report is ready: Dispute Pack ready: order <orderId>, a short note with a View it in PCIFIC button to the dispute, and the PDF and its JSON copy attached."},"teamAddresses":{"type":"array","items":{"type":"string"},"description":"0 to 10 email addresses; at least one when teamReady and pcificSends are on. Changed only on the dashboard: an API key must send them as saved. An address of a dashboard member works at once; any other is emailed a link and gets nothing until it is followed.","maxItems":10},"sellerRelease":{"type":"boolean","description":"Email the seller on every release, by hand or by an automation rule: only the released sections, the seller link and the PDF."},"brand":{"type":"object","description":"How the emails look. No PCIFIC branding unless poweredBy is true.","properties":{"senderName":{"type":"string","description":"The name emails come from, 1 to 60 characters, no < > \" or line breaks. Needed when pcificSends is on."},"replyTo":{"type":["string","null"],"description":"Where replies go, an email address, or null when none is saved. Needed when pcificSends is on. Replies never reach PCIFIC. An API key must send it as saved. Changes require the dashboard after Confirm it is you."},"logoUrl":{"type":["string","null"],"description":"The public https address of your logo (PNG, JPEG or WebP, up to 2 MB and 60 million pixels for the dashboard email preview, about 300 by 100 pixels), up to 500 characters, or null. A private, local or internal address (localhost, names ending in .local, .internal or .home.arpa, 10.x, 192.168.x, 169.254.x and the like) is 400 INVALID_SETTING, and so is one whose website name or redirects lead to one, whose name cannot be looked up, or that redirects more than 5 times: when you save (reported at /body/brand/logoUrl) or call POST /api/v1/dispute-pack/emails/preview with settings supplied (reported at /body/settings/brand/logoUrl), PCIFIC looks up the host and follows up to 5 redirects reading headers only. In the dashboard email preview, PCIFIC also fetches the logo (5-second timeout, up to 4 public redirects) and accepts only readable PNG, JPEG or WebP images up to 2 MB and 60 million pixels."},"colour":{"type":"string","description":"Your brand colour as #RRGGBB."},"footer":{"type":"string","description":"Footer text, up to 500 characters, for example your legal name and address. May be empty."},"poweredBy":{"type":"boolean","description":"true adds a small \"Powered by PCIFIC\" line."}},"required":["senderName","replyTo","logoUrl","colour","footer","poweredBy"],"additionalProperties":false},"templates":{"type":"object","description":"What the emails say. Words in double curly brackets, such as {{disputeId}}, are filled in; any other name is refused.","properties":{"teamReady":{"type":"object","description":"Left out: the standard wording.","properties":{"default":{"type":"object","description":"The wording for every reason without its own version.","properties":{"subject":{"type":"string","description":"1 to 200 characters."},"body":{"type":"string","description":"Plain text, 1 to 5,000 characters. A blank line starts a paragraph. HTML is shown as typed, never run."}},"required":["subject","body"],"additionalProperties":false},"byReason":{"type":"object","description":"Up to 20 versions, each keyed by a dispute reason exactly as your system sends it, each {subject, body}.","additionalProperties":true}},"required":["default","byReason"],"additionalProperties":false},"sellerRelease":{"type":"object","description":"Left out: the standard wording.","properties":{"default":{"type":"object","description":"The wording for every reason without its own version.","properties":{"subject":{"type":"string","description":"1 to 200 characters."},"body":{"type":"string","description":"Plain text, 1 to 5,000 characters. A blank line starts a paragraph. HTML is shown as typed, never run."}},"required":["subject","body"],"additionalProperties":false},"byReason":{"type":"object","description":"Up to 20 versions, each keyed by a dispute reason exactly as your system sends it, each {subject, body}.","additionalProperties":true}},"required":["default","byReason"],"additionalProperties":false}},"additionalProperties":false},"pendingTeamAddresses":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"customised":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"warnings":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"from":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"domain":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"placeholders":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"defaults":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"price":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."}},"required":["pcificSends","teamReady","teamAddresses","sellerRelease","brand"],"description":"Send every setting, as GET answers it: pcificSends, teamReady, teamAddresses, sellerRelease and brand (senderName, replyTo, logoUrl, colour, footer and poweredBy) are required; templates may be left out for the standard wording. An error names the setting's place in the body, for example /body/teamReady or /body/brand/colour. The other fields GET answers, such as from, domain and price, may be sent back exactly as GET answers them right now; a changed value is 400 INVALID_FIELD at that field, naming where it is changed. Any other field, at the top, in brand or in a template, is 400 INVALID_FIELD at its own path, for example /body/brand/font, and nothing is saved. Both emails: businessName, disputeId, orderId, listingRef, reason. Seller email: sellerLink, linkExpires, pdfFileName, sections. Team email: packLink, summary, version. A template exactly matching the standard wording is not saved as the shop's own.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/emails/preview":{"post":{"operationId":"preview-dispute-pack-email","summary":"Draw one email with an example dispute, exactly as it would be sent, from your saved settings or from settings you send. Nothing is saved or sent.","description":"Test key permission: \"settings\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"sellerRelease or teamReady."},"reason":{"type":"string","description":"A dispute reason, to see its own version."},"delivery":{"type":"string","description":"sellerRelease only: link (the default) for a seller link release, or pdf for a PDF-only release, whose email has no link. Sent with teamReady it is 400 INVALID_FIELD at /body/delivery.","enum":["link","pdf"]},"settings":{"type":"object","description":"Settings in the PUT /api/v1/dispute-pack/emails form. Left out: the saved settings.","properties":{"pcificSends":{"type":"boolean","description":"true lets PCIFIC send emails for you, a paid extra charged per email sent. Off by default. Turning it on requires the dashboard and a recent identity confirmation; an API key may turn it off, or send it as saved."},"teamReady":{"type":"boolean","description":"Email your team when a report is ready: Dispute Pack ready: order <orderId>, a short note with a View it in PCIFIC button to the dispute, and the PDF and its JSON copy attached."},"teamAddresses":{"type":"array","items":{"type":"string"},"description":"0 to 10 email addresses; at least one when teamReady and pcificSends are on. Changed only on the dashboard: an API key must send them as saved. An address of a dashboard member works at once; any other is emailed a link and gets nothing until it is followed.","maxItems":10},"sellerRelease":{"type":"boolean","description":"Email the seller on every release, by hand or by an automation rule: only the released sections, the seller link and the PDF."},"brand":{"type":"object","description":"How the emails look. No PCIFIC branding unless poweredBy is true.","properties":{"senderName":{"type":"string","description":"The name emails come from, 1 to 60 characters, no < > \" or line breaks. Needed when pcificSends is on."},"replyTo":{"type":["string","null"],"description":"Where replies go, an email address, or null when none is saved. Needed when pcificSends is on. Replies never reach PCIFIC. An API key must send it as saved. Changes require the dashboard after Confirm it is you."},"logoUrl":{"type":["string","null"],"description":"The public https address of your logo (PNG, JPEG or WebP, up to 2 MB and 60 million pixels for the dashboard email preview, about 300 by 100 pixels), up to 500 characters, or null. A private, local or internal address (localhost, names ending in .local, .internal or .home.arpa, 10.x, 192.168.x, 169.254.x and the like) is 400 INVALID_SETTING, and so is one whose website name or redirects lead to one, whose name cannot be looked up, or that redirects more than 5 times: when you save (reported at /body/brand/logoUrl) or call POST /api/v1/dispute-pack/emails/preview with settings supplied (reported at /body/settings/brand/logoUrl), PCIFIC looks up the host and follows up to 5 redirects reading headers only. In the dashboard email preview, PCIFIC also fetches the logo (5-second timeout, up to 4 public redirects) and accepts only readable PNG, JPEG or WebP images up to 2 MB and 60 million pixels."},"colour":{"type":"string","description":"Your brand colour as #RRGGBB."},"footer":{"type":"string","description":"Footer text, up to 500 characters, for example your legal name and address. May be empty."},"poweredBy":{"type":"boolean","description":"true adds a small \"Powered by PCIFIC\" line."}},"required":["senderName","replyTo","logoUrl","colour","footer","poweredBy"],"additionalProperties":false},"templates":{"type":"object","description":"What the emails say. Words in double curly brackets, such as {{disputeId}}, are filled in; any other name is refused.","properties":{"teamReady":{"type":"object","description":"Left out: the standard wording.","properties":{"default":{"type":"object","description":"The wording for every reason without its own version.","properties":{"subject":{"type":"string","description":"1 to 200 characters."},"body":{"type":"string","description":"Plain text, 1 to 5,000 characters. A blank line starts a paragraph. HTML is shown as typed, never run."}},"required":["subject","body"],"additionalProperties":false},"byReason":{"type":"object","description":"Up to 20 versions, each keyed by a dispute reason exactly as your system sends it, each {subject, body}.","additionalProperties":true}},"required":["default","byReason"],"additionalProperties":false},"sellerRelease":{"type":"object","description":"Left out: the standard wording.","properties":{"default":{"type":"object","description":"The wording for every reason without its own version.","properties":{"subject":{"type":"string","description":"1 to 200 characters."},"body":{"type":"string","description":"Plain text, 1 to 5,000 characters. A blank line starts a paragraph. HTML is shown as typed, never run."}},"required":["subject","body"],"additionalProperties":false},"byReason":{"type":"object","description":"Up to 20 versions, each keyed by a dispute reason exactly as your system sends it, each {subject, body}.","additionalProperties":true}},"required":["default","byReason"],"additionalProperties":false}},"additionalProperties":false},"pendingTeamAddresses":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"customised":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"warnings":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"from":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"domain":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"placeholders":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"defaults":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."},"price":{"description":"Optional: send it back exactly as GET answers it, or leave it out. On PUT, a changed value is 400 INVALID_FIELD at this field and nothing is saved; in a preview's settings it is ignored."}},"required":["pcificSends","teamReady","teamAddresses","sellerRelease","brand"],"additionalProperties":false}},"required":["email"],"description":"Both emails: businessName, disputeId, orderId, listingRef, reason. Seller email: sellerLink, linkExpires, pdfFileName, sections. Team email: packLink, summary, version. A template exactly matching the standard wording is not saved as the shop's own.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/listings":{"post":{"operationId":"push-dispute-pack-listing","summary":"Send a listing as you hold it, with its photos as files. A new version takes a snapshot, records what changed since the version live before it by occurredAt, and hashes each photo. The same listing sent again exactly as held answers 200 with status unchanged and stores nothing. Photos add up and are never replaced: each push's photos are kept beside every photo sent earlier for that listingRef, and a later push that leaves a photo out, or sends none, removes nothing. The report lists every photo sent, and currentAtSale marks the photos of the latest push, by occurredAt, that had photos and reached PCIFIC before the sale. Free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id, 1 to 120 characters, stored exactly as sent. One listingRef part per form."},"listing":{"type":"string","description":"The listing as you hold it, as JSON text, stored byte for byte with your own field names."},"occurredAt":{"type":"string","description":"When this version of the listing was live, ISO 8601 UTC, between 2000 and 24 hours from now. Defaults to now. Send it explicitly so a late push can still represent the version at sale."},"photos":{"type":"array","items":{"type":"string","format":"binary","description":"Optional: 0 to 12 photo files, JPEG, PNG or WebP, within Orbit's photo size limits. Never photo addresses."},"description":"Optional: 0 to 12 photo files, JPEG, PNG or WebP, within Orbit's photo size limits. Never photo addresses.","maxItems":12}},"required":["listingRef","listing"],"description":"multipart/form-data. Any other Content-Type, such as application/x-www-form-urlencoded or application/json, is 400 INVALID_FIELD at /header/Content-Type, naming the type sent. If your business switched on request signing, sign the whole raw form exactly as sent."}}}}},"get":{"operationId":"find-dispute-pack-listing","summary":"A listing's full history by your own listing id: every evidence record in time order and its disputes.","description":"Test key permission: \"dispute-pack\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"listingRef","in":"query","required":true,"description":"Your own listing id, exactly as sent.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/dispute-pack/listings/capture":{"post":{"operationId":"capture-dispute-pack-listing","summary":"Send a link instead of the listing: PCIFIC opens the listing's public page itself and keeps what the page says as a listing version, at the time you give. Use it when a listing is saved, and before the page shows sold, then send the sale as usual. The version holds only what the page states (title, description, price, image addresses, structured data, Open Graph tags and visible text), never a guess, and is labelled everywhere as captured by PCIFIC from that address. The page as fetched is kept beside it as its own signed record (kind page). Each image the page names (og:image and the structured data's Product image), up to 12, is fetched and kept like an uploaded photo; one that cannot be fetched or used is listed in photosSkipped and the capture still stands. The same page captured again stores no new version; only images skipped before because they timed out, could not be reached or answered with a 5xx error are fetched again, and any that arrive are kept against that version. Free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id, 1 to 120 characters.","minLength":1,"maxLength":120},"url":{"type":"string","description":"The listing's public page, the address a buyer opens: https:// only, at most 2048 characters, with no user name or password in it. Kept exactly as sent.","minLength":1,"maxLength":2048},"occurredAt":{"type":"string","description":"When the page said this, ISO 8601 UTC, between 2000 and 24 hours from now. Defaults to now. To cover a sale, send it with occurredAt set to soldAt before the page shows sold.","format":"date-time"}},"required":["listingRef","url"],"description":"One capture, as JSON. Only public https addresses are opened, and every redirect is checked the same way. The page must be HTML of at most 2 MB and answer within 10 seconds; the whole capture, images included, takes at most 30 seconds. Any field not listed here is 400 INVALID_FIELD at its own path, and nothing is stored.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/listings/batch":{"post":{"operationId":"backfill-dispute-pack-listings","summary":"Send your existing live listings in one go on your first day, so a dispute about a listing made before you connected still has the listing as it was. 1 to 50 listings, up to 5 MB, no photos: push a listing on its own to add photos. A listing whose bytes match its latest snapshot is unchanged and nothing new is stored, so after a timeout, send the same batch again. If any listing is invalid, or PCIFIC cannot store one, nothing is stored. The same batch sent again without an Idempotency-Key while the first is still being stored is 409 BATCH_ALREADY_STORING and stores nothing; sent with its own Idempotency-Key, it waits up to 8 seconds for the first, then answers each listing the first stored as unchanged. A batch that never answers, for example when your server stops waiting, may still have been stored: send the same batch again, and each listing already stored comes back as unchanged. Free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listings":{"type":"array","items":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id, 1 to 120 characters, stored exactly as sent. Each listingRef once per batch.","minLength":1,"maxLength":120},"listing":{"description":"The listing as you hold it, any JSON value, an object or a list, stored byte for byte with your own field names.","additionalProperties":true},"occurredAt":{"type":"string","description":"When this version of the listing went live, ISO 8601 UTC, between 2000-01-01T00:00:00Z and 24 hours from now. Defaults to now.","format":"date-time"}},"required":["listingRef","listing"],"additionalProperties":false},"description":"1 to 50 listings.","minItems":1,"maxItems":50}},"required":["listings"],"description":"{\"listings\": [...]}, 1 to 50 listings, the whole body up to 5 MB. Split a larger catalogue into several batches. After a timeout, send the same batch again. There is no dry run: any field not listed here, such as dryRun at the top or photos in a listing, is 400 INVALID_FIELD at its own path, and nothing in the batch is stored.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/import":{"post":{"operationId":"import-dispute-pack-history","summary":"Bring in the history you held before connecting Dispute Pack: past versions of each listing with their own dates, past sales, buyer and seller messages, and courier tracking, so a dispute about an older sale still has a full timeline. Each item is stored exactly as sent with your date, and is labelled everywhere as \"Imported history: supplied by the business on <date received>, dated <your date>, not captured live by PCIFIC\"; its receivedAt, SHA-256 and signature are PCIFIC's own, from when the import arrived. An item older than lookbackMonths is refused by its JSON path. If any item is refused, nothing is stored. The same import sent again stores nothing new. It starts no dispute, sends no webhook and does not count as a live listing, sale, message or tracking event. Free; storage is charged daily like other evidence.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lookbackMonths":{"type":"integer","description":"How far back this import reaches: 3, 6, 12 or 18 months from now. An item dated before then is refused at its own path, for example /body/listings/0/messages/2/sentAt.","enum":[3,6,12,18]},"listings":{"type":"array","items":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id, 1 to 120 characters, stored exactly as sent."},"versions":{"type":"array","items":{"type":"object","properties":{"occurredAt":{"type":"string","description":"When this version went live, ISO 8601 with its time zone, inside the lookback."},"listing":{"type":"object","description":"The listing as it was then, any JSON, stored byte for byte with your own field names.","additionalProperties":true}},"required":["occurredAt","listing"],"additionalProperties":false},"description":"Past versions of the listing. Matched again by date and SHA-256. At most 250 items in all: the versions, sales, messages and tracking of every listing in this import count together towards 250, so 250 is the most one list can hold.","maxItems":250},"sales":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string","description":"Your order id, 1 to 128 characters, once per import and not already sold on another listing."},"buyerId":{"type":"string","description":"Your opaque buyer id: 1 to 128 ASCII letters, digits, dots, colons, underscores or hyphens."},"soldAt":{"type":"string","description":"When it sold, ISO 8601 with its time zone, inside the lookback."},"price":{"type":"object","description":"Preferred minor-unit money object: {amount, currency}, matching Orbit and Safeguard. Send either price or legacy amount + currency.","properties":{"amount":{"type":"integer","description":"What the buyer paid as a non-negative whole integer in minor units (such as 64900 for £649.00, or 1500 for ¥1500)."},"currency":{"type":"string","description":"An ISO 4217 currency code in capitals, for example GBP.","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"amount":{"type":"number","description":"Legacy major-unit amount (pounds, not pence), kept for backwards compatibility. Omit when sending price."},"currency":{"type":"string","description":"Legacy ISO 4217 currency code in capitals, for example GBP. Omit when sending price.","pattern":"^[A-Z]{3}$"},"listingRef":{"type":"string","description":"Left out, or the listingRef of the listing it is filed under."}},"required":["orderId","buyerId","soldAt"],"additionalProperties":false},"description":"Past sales, each as POST /api/v1/dispute-pack/sales takes one. listingRef may be left out or must match the listing it is filed under. Matched again by orderId. Each gets a copy of the listing as it stood at soldAt. At most 250 items in all: the versions, sales, messages and tracking of every listing in this import count together towards 250, so 250 is the most one list can hold.","maxItems":250},"messages":{"type":"array","items":{"type":"object","properties":{"buyerId":{"type":"string","description":"Your opaque buyer id."},"role":{"type":"string","description":"buyer or seller."},"messageId":{"type":"string","description":"Your message id, 1 to 128 characters, once per buyer in the import."},"sentAt":{"type":"string","description":"When it was sent, ISO 8601 with its time zone, inside the lookback."},"text":{"type":"string","description":"The message, 1 to 20,000 characters, stored exactly as sent. A control character, such as ESC, BEL or DEL, is 400 INVALID_FIELD at text; line breaks and tabs are kept. Canonical field."},"message":{"type":"string","description":"Legacy alias for text, accepted when text is omitted and normalized to text on save. Sending both text and message with different values is refused at text."},"attachments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"File name."},"contentType":{"type":"string","description":"Its type, for example image/png."}},"additionalProperties":false},"description":"Up to 10 attachment descriptions, stored as sent. Files are never fetched.","maxItems":10},"listingRef":{"type":"string","description":"Left out, or the listingRef of the listing it is filed under."}},"required":["buyerId","role","messageId","sentAt"],"additionalProperties":false},"description":"Past messages, each as POST /api/v1/dispute-pack/messages takes one. listingRef may be left out or must match the listing it is filed under. Matched again by buyerId and messageId. messageMode applies as for live messages. At most 250 items in all: the versions, sales, messages and tracking of every listing in this import count together towards 250, so 250 is the most one list can hold.","maxItems":250},"tracking":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string","description":"The order it delivered, 1 to 128 characters."},"carrier":{"type":"string","description":"Carrier name, 1 to 120 characters."},"trackingNumber":{"type":"string","description":"Tracking number, 1 to 120 characters."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","description":"When, ISO 8601."},"status":{"type":"string","description":"What the carrier said."},"location":{"type":"string","description":"Where."}},"additionalProperties":false},"description":"Up to 500 scan events as the courier gave them.","maxItems":500},"deliveredAt":{"type":"string","description":"Delivery time, ISO 8601, or leave it out to date the tracking by its newest scan."},"listingRef":{"type":"string","description":"Left out, or the listingRef of the listing it is filed under."}},"required":["orderId","carrier","trackingNumber"],"additionalProperties":false},"description":"Past tracking, each as POST /api/v1/dispute-pack/tracking takes it. listingRef may be left out or must match the listing it is filed under. Dated by deliveredAt, or by the newest scan's at. Matched again by SHA-256. At most 250 items in all: the versions, sales, messages and tracking of every listing in this import count together towards 250, so 250 is the most one list can hold.","maxItems":250}},"required":["listingRef"],"additionalProperties":false},"description":"1 to 50 listings, each listingRef once.","minItems":1,"maxItems":50}},"required":["lookbackMonths","listings"],"description":"{\"lookbackMonths\": 3, 6, 12 or 18, \"listings\": [...]}: 1 to 50 listings and up to 250 items in all, the whole body up to 5 MB. Each list is optional. Split a longer history into several imports. Photos are not imported: push a listing on its own to add them. There is no dry run: any field not listed here, such as dryRun at the top or coupon in a sale, is 400 INVALID_FIELD at its own path, and nothing in the import is stored. Order ids follow the sale rules, including look-alikes.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/listings/{listingCode}":{"get":{"operationId":"get-dispute-pack-listing","summary":"A listing's full history by PCIFIC's listing code: every evidence record in time order and its disputes.","description":"Test key permission: \"dispute-pack\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"listingCode","in":"path","required":true,"description":"PCIFIC's Dispute Pack listing code, for example DSP-7KQM-3XHT-9RWA, from any evidence answer.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/dispute-pack/sales":{"post":{"operationId":"record-dispute-pack-sale","summary":"Record a sale. It also copies the listing as it stood at soldAt: the newest push whose occurredAt is at or before soldAt (a push without occurredAt counts as when it arrived). Free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id, 1 to 120 characters.","minLength":1,"maxLength":120},"buyerId":{"type":"string","description":"Your opaque buyer id: 1 to 128 ASCII letters, digits, dots, colons, underscores or hyphens, compared exactly.","pattern":"^[A-Za-z0-9.:_-]{1,128}$"},"orderId":{"type":"string","description":"Your order id, 1 to 128 characters.","minLength":1,"maxLength":128},"soldAt":{"type":"string","description":"When it sold, ISO 8601 UTC, between 2000-01-01T00:00:00Z and 24 hours from now.","format":"date-time"},"price":{"type":"object","description":"Preferred minor-unit money object: {amount, currency}, matching Orbit and Safeguard. Send either price or legacy amount + currency.","properties":{"amount":{"type":"integer","description":"What the buyer paid as a non-negative whole JSON integer in minor units (no decimal point or exponent): 64900 for £649.00, 1500 for ¥1500.","minimum":0},"currency":{"type":"string","description":"An ISO 4217 currency code in capitals, for example GBP.","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"],"additionalProperties":false},"amount":{"type":"number","description":"Legacy major-unit amount (pounds, not pence): 0 or more (0 for a free item), at most 100000000, with no more decimal places than the currency has (0 for JPY, 2 for GBP, 3 for BHD). Omit when sending price.","minimum":0,"maximum":100000000},"currency":{"type":"string","description":"Legacy ISO 4217 currency code in capitals, for example GBP. Omit when sending price.","pattern":"^[A-Z]{3}$"}},"required":["listingRef","buyerId","orderId","soldAt"],"description":"One sale as JSON. Send price: {amount, currency} in minor units (matching Orbit and Safeguard), or legacy major-unit amount and currency. If both price and top-level amount or currency are sent and disagree, PCIFIC refuses with 400. A missing listing snapshot returns warning.error and warning.tryThis. Order ids trim surrounding whitespace, are stored and matched exactly as sent, and refuse invisible, control and format characters. An orderId that differs from a stored one only in capitals or character width, such as ord-3001 or ORD-3001 beside ORD-3001, is 409 ORDER_EXISTS. Repeated JSON keys are 400 naming the key and its path. Retry tickets (Idempotency-Key) belong to this shop and data mode. Any field not listed here is 400 INVALID_FIELD at its own path, for example /body/note, and nothing is stored.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/messages":{"post":{"operationId":"record-dispute-pack-message","summary":"Store one buyer or seller message, one conversation per buyer per listing. A repeated messageId is stored once and answers 200. Free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id, 1 to 120 characters.","minLength":1,"maxLength":120},"buyerId":{"type":"string","description":"The buyer the conversation is with, the same opaque id rules as sales.","pattern":"^[A-Za-z0-9.:_-]{1,128}$"},"role":{"type":"string","description":"buyer or seller: who sent this message.","enum":["buyer","seller"]},"messageId":{"type":"string","description":"Your message id, 1 to 128 characters, unique in the conversation.","minLength":1,"maxLength":128},"sentAt":{"type":"string","description":"When it was sent, ISO 8601 UTC, between 2000-01-01T00:00:00Z and 24 hours from now.","format":"date-time"},"text":{"type":"string","description":"The message, 1 to 20,000 characters, stored exactly as sent. A control character, such as ESC, BEL or DEL, is 400 INVALID_FIELD at text; line breaks and tabs are kept. Canonical field.","minLength":1,"maxLength":20000},"message":{"type":"string","description":"Legacy alias for text, accepted when text is omitted and normalized to text before storing. Sending both text and message with different values is 400 INVALID_FIELD at /body/text.","minLength":1,"maxLength":20000},"attachments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"File name."},"contentType":{"type":"string","description":"Its type, for example image/png."}},"additionalProperties":false},"description":"Up to 10 attachment details, stored as given. PCIFIC never fetches them.","maxItems":10}},"required":["listingRef","buyerId","role","messageId","sentAt"],"description":"Tell your users in your own privacy policy that messages may be shared with PCIFIC for dispute evidence and fraud checks. Send text (canonical); message is accepted as a legacy alias when text is omitted and normalized to text before storing. Any field not listed here is 400 INVALID_FIELD at its own path, and nothing is stored.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/tracking":{"post":{"operationId":"record-dispute-pack-tracking","summary":"Store tracking details and scan events exactly as given. PCIFIC never contacts a carrier. Free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id. Needed when the order's sale is not stored yet, or it is 400 INVALID_FIELD at /body/listingRef; when the sale is stored, it must be the listing the order was sold on."},"orderId":{"type":"string","description":"The order this parcel belongs to, 1 to 128 characters.","minLength":1,"maxLength":128},"carrier":{"type":"string","description":"Carrier name, 1 to 120 characters.","minLength":1,"maxLength":120},"trackingNumber":{"type":"string","description":"Tracking number, 1 to 120 characters.","minLength":1,"maxLength":120},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","description":"ISO 8601 UTC, between 2000-01-01T00:00:00Z and 24 hours from now.","format":"date-time"},"status":{"type":"string","description":"What the carrier said."},"location":{"type":"string","description":"Where."}},"additionalProperties":false},"description":"Up to 500 scan events, stored as given.","maxItems":500},"deliveredAt":{"type":["string","null"],"description":"Delivery confirmation time, ISO 8601 UTC. It dates the tracking; without it, the newest scan in events does, and without either, when it arrived.","format":"date-time"}},"required":["orderId","carrier","trackingNumber"],"description":"Identical body bytes for this order return the existing tracking id with 200, without storing another record. Any field not listed here is 400 INVALID_FIELD at its own path, and nothing is stored. Always send orderId. A dispute's pack includes only tracking sent with its orderId, and none when the disputing buyer has no sale for that order.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/disputes":{"post":{"operationId":"start-dispute-pack","summary":"Start a dispute when your buyer presses dispute. The pack is assembled at once from the evidence already held; the written report may follow, announced by dispute_pack.ready. Charged once the written report is ready; a failed write-up costs nothing. Test keys are free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingRef":{"type":"string","description":"Your own listing id, 1 to 120 characters.","minLength":1,"maxLength":120},"buyerId":{"type":"string","description":"The disputing buyer, the same opaque id rules as sales. Only this buyer's conversation goes in the pack.","pattern":"^[A-Za-z0-9.:_-]{1,128}$"},"orderId":{"type":"string","description":"Your order id."},"disputeId":{"type":"string","description":"Your own dispute id, 1 to 120 characters, unique in this shop.","minLength":1,"maxLength":120},"reason":{"type":"string","description":"Your reason, 1 to 120 characters, stored as sent. Automation rules match on it.","minLength":1,"maxLength":120},"note":{"type":"string","description":"Up to 2,000 characters. Internal to your business: never sent to the report writer, included in the write-up or released to a seller.","maxLength":2000},"sellerEmail":{"type":"string","description":"The seller's email address, for the emails PCIFIC can send for you. Kept with the dispute. A test dispute takes only one of your teamAddresses.","format":"email"}},"required":["listingRef","buyerId","orderId","disputeId","reason"],"description":"One dispute, as JSON. The pack cites only this buyer's sale of this order on this listing; when none is held, the dispute still starts and the answer carries warning. Any field not listed here is 400 INVALID_FIELD at its own path, and nothing is stored.","additionalProperties":false}}}}},"get":{"operationId":"list-dispute-packs","summary":"This shop's disputes, newest first, a page at a time: send nextCursor back as ?cursor= for the next page. With an API key, any other query parameter is 400 INVALID_FIELD at /query/<name>. A parameter sent twice is 400 QUERY_PARAMETER_REPEATED, as on every /api/v1 address.","description":"Test key permission: \"dispute-pack\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"status","in":"query","required":false,"description":"open or closed. Leave out for both.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 100 per page, 50 when left out.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor of the previous page, sent back exactly as it came. Leave out for the first page.","schema":{"type":"string"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/dispute-pack/disputes/{id}":{"get":{"operationId":"get-dispute-pack","summary":"A dispute and its report as JSON, every version listed and every seller release. The newest ready version unless version is sent; the newest attempt when none is ready.","description":"Test key permission: \"dispute-pack\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"id","in":"path","required":true,"description":"PCIFIC's dispute id (dispute.id from POST /api/v1/dispute-pack/disputes), not your own disputeId.","schema":{"type":"string","format":"uuid"}},{"name":"version","in":"query","required":false,"description":"A version number from versions.","schema":{"type":"integer"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/dispute-pack/disputes/{id}/pdf":{"get":{"operationId":"get-dispute-pack-pdf","summary":"The report as a PDF for dispute evidence: A4 portrait, 12 pt text or larger, up to 4.5 MB, ending with every cited record's hash and signature.","description":"Test key permission: \"dispute-pack\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"id","in":"path","required":true,"description":"PCIFIC's dispute id (dispute.id from POST /api/v1/dispute-pack/disputes), not your own disputeId.","schema":{"type":"string","format":"uuid"}},{"name":"version","in":"query","required":false,"description":"A version number. The newest ready version by default.","schema":{"type":"integer"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/dispute-pack/disputes/{id}/regenerate":{"post":{"operationId":"regenerate-dispute-pack","summary":"Write the report again as a new version. Every older version is kept. One version is written at a time. Charged once the new report is ready; a failed write-up costs nothing. Test keys are free.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"id","in":"path","required":true,"description":"PCIFIC's dispute id (dispute.id from POST /api/v1/dispute-pack/disputes), not your own disputeId.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"X-PCIFIC-Test-AI","in":"header","required":false,"description":"Set to stub with a test key for synthetic load testing. Normal validation, limits, queues and Logs run. No AI, external tool calls, charges or daily AI allowance. The header and testAiStub mark synthetic replies. This tests integration throughput, not AI quality or provider capacity. Live keys and other values are refused.","schema":{"type":"string","enum":["stub"]}}]}},"/api/v1/dispute-pack/disputes/{id}/close":{"post":{"operationId":"close-dispute-pack","summary":"Close the dispute. Its pack and every record it cites go back to normal retention. Closing a dispute that is already closed changes nothing and answers 200 with the dispute as it is, keeping its first outcome.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"id","in":"path","required":true,"description":"PCIFIC's dispute id (dispute.id from POST /api/v1/dispute-pack/disputes), not your own disputeId.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","description":"What happened, up to 200 characters.","maxLength":200}},"description":"May be empty. Any field not listed here is 400 INVALID_FIELD at its own path, and nothing is stored.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/disputes/{id}/release":{"post":{"operationId":"release-dispute-pack","summary":"Release the report, or chosen sections, to the seller as a secure link that expires after 14 days or as a PDF. The answer has a ready-made email to send the seller yourself, free; or PCIFIC emails them for you, a paid extra. Released original photos are kept byte for byte, exactly as you sent them, so a photo from a phone or camera may still hold where it was taken (location data). PCIFIC does not strip EXIF (the photo's metadata, which can include GPS coordinates) from the stored original, and a seller link lets the seller download each released original. Only the JPEG copies made for viewing and the photos drawn in the PDF are redrawn without it. Remove location data from a photo before you send it to PCIFIC if a seller should not see where it was taken.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"id","in":"path","required":true,"description":"PCIFIC's dispute id (dispute.id from POST /api/v1/dispute-pack/disputes), not your own disputeId.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sections":{"type":["string","array"],"items":{"type":"string"},"description":"\"full\", \"default\" (your saved default sections) or a list of summary, listing, photos, chat, delivery, checks, timeline."},"delivery":{"type":"string","description":"link or pdf.","enum":["link","pdf"]},"version":{"type":"integer","description":"The version to release. By default the newest ready version, skipping test stub write-ups (X-PCIFIC-Test-AI: stub) when a real one is ready."},"sellerEmail":{"type":"string","description":"The seller's email address. Saved on the dispute for later releases. A test dispute takes only one of your teamAddresses."},"sendEmail":{"type":"boolean","description":"true for PCIFIC to email the seller, false not to. Left out: your sellerRelease email setting decides."}},"required":["sections","delivery"],"description":"sources is always added, limited to what the released sections cite. A seller link always works for 14 days. Any field not listed here, such as expiresInDays, is 400 INVALID_FIELD at its own path, and nothing is released. A version this dispute does not have is 400 INVALID_FIELD at /body/version.","additionalProperties":false}}}}}},"/api/v1/dispute-pack/releases/{releaseId}/pdf":{"get":{"operationId":"get-dispute-pack-release-pdf","summary":"The released PDF, holding only the released sections, to attach to your own email to the seller.","description":"Test key permission: \"dispute-pack\", or \"read\".","tags":["Dispute Pack"],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"A release id from POST /api/v1/dispute-pack/disputes/{id}/release or the releases in GET /api/v1/dispute-pack/disputes/{id}.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/dispute-pack/releases/{releaseId}/revoke":{"post":{"operationId":"revoke-dispute-pack-release","summary":"Revoke a release, a link or a PDF one. Its seller link stops working at once, its PDF is no longer offered (410 RELEASE_REVOKED, and pdfUrl is null), and a webhook delivery still waiting says status revoked with no PDF address and no suggested email. A PDF already sent stays with the seller.","description":"Test key permission: \"dispute-pack\".","tags":["Dispute Pack"],"parameters":[{"name":"releaseId","in":"path","required":true,"description":"A release id from POST /api/v1/dispute-pack/disputes/{id}/release or the releases in GET /api/v1/dispute-pack/disputes/{id}.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/dispute-pack/seller/{token}":{"get":{"operationId":"get-dispute-pack-seller-view","summary":"What a seller link shows: the business name, order id, released sections and cited sources. No buyer, conversation, message, listing, dispute, pack, version, evidence or tool ids, no model name and no raw tool JSON: records are cited by their number in sections.sources.records. No API key.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}}],"security":[]}},"/api/v1/dispute-pack/seller/{token}/pdf":{"get":{"operationId":"get-dispute-pack-seller-pdf","summary":"The released PDF from a seller link. No API key.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}}],"security":[]}},"/api/v1/dispute-pack/seller/{token}/photos/{number}":{"get":{"operationId":"get-dispute-pack-seller-photo","summary":"One photo the seller PDF embeds, as a JPEG the size the PDF draws it. Use sections.photos.photos[].source of a photo whose inPdf is true in GET /api/v1/dispute-pack/seller/{token}: only photos this release's PDF actually holds are served, and a record number from sections.sources.records that is not such a photo's source is 404. Never cached. One network may fetch 120 photos in 10 minutes. No API key.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}},{"name":"number","in":"path","required":true,"description":"sections.photos.photos[].source of a photo whose inPdf is true in GET /api/v1/dispute-pack/seller/{token}.","schema":{"type":"integer"}}],"security":[]}},"/api/v1/dispute-pack/seller/{token}/photos/{number}/original":{"get":{"operationId":"get-dispute-pack-seller-photo-original","summary":"One released photo exactly as the business sent it, as a download, so its SHA-256 matches sections.photos.photos[].sha256 and the hash in Sources. Use sections.photos.photos[].source of any photo in GET /api/v1/dispute-pack/seller/{token}. Never cached. Counted with /photos/{number} against one limit of 120 photos a network in 10 minutes. No API key.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}},{"name":"number","in":"path","required":true,"description":"sections.photos.photos[].source of a photo whose inPdf is true in GET /api/v1/dispute-pack/seller/{token}.","schema":{"type":"integer"}}],"security":[]}},"/api/v1/dispute-pack/unsubscribe/{token}":{"get":{"operationId":"get-dispute-pack-unsubscribe","summary":"What the unsubscribe link in a seller email stops, and whether it is stopped already. No API key. The page at /dispute-pack/unsubscribe/{token} reads this.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}}],"security":[]},"post":{"operationId":"dispute-pack-unsubscribe","summary":"Stop this business's dispute emails to this address. No API key. Mail apps send it as the one-click unsubscribe; the business is told when a later email is skipped.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"security":[]}},"/api/v1/dispute-pack/team-addresses/{token}":{"get":{"operationId":"get-dispute-pack-team-address","summary":"Which business a team address confirmation link is from, for which address, and whether it is confirmed already. No API key. The page at /dispute-pack/team-address/{token} reads this; opening it confirms nothing.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}}],"security":[]},"post":{"operationId":"confirm-dispute-pack-team-address","summary":"Confirm a team address, as its owner does by pressing Confirm on the page the email links to. From then on it gets the shop's team emails and may be a test dispute's sellerEmail. No API key.","description":"No API key: anyone holding the link may call it.","tags":["Dispute Pack"],"parameters":[{"name":"token","in":"path","required":true,"description":"The token at the end of a seller link, /dispute-pack/seller/{token}, of a seller email's unsubscribe link, /dispute-pack/unsubscribe/{token}, or of a team address confirmation link, /dispute-pack/team-address/{token}.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"security":[]}},"/api/v1/pixel-trace/captures":{"post":{"operationId":"pixel-trace-create-capture","summary":"Start a photo group for one listing. Send the seller the cameraUrl: it works in one browser at a time, waits openWithinMinutes (default 15 minutes) to be opened, then gives the seller captureMinutes (default 30) from when they open it. A test key reaches only test groups, and a live key only live groups.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingId":{"type":"string","description":"Your business's own listing id, as text. It does not have to be a UUID. After spaces at the ends are trimmed it must contain 1 to 120 characters."},"listingTitle":{"type":"string","description":"Shown on the camera page and certificate. Longer than 120 characters is cut."},"listingRef":{"type":["string","null"],"description":"Your own id for the listing in Dispute Pack, 1 to 120 characters, kept exactly as sent and given back with the group. While Dispute Pack is on, the group's result is copied into that listing's evidence. null is the same as leaving it out."}},"required":["listingId"]}}}}}},"/api/v1/pixel-trace/captures/{captureId}":{"get":{"operationId":"pixel-trace-get-capture","summary":"Read the group from your backend every few seconds until status is ready, then publish it.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]}},"/api/v1/pixel-trace/captures/{captureId}/test-photos":{"post":{"operationId":"pixel-trace-test-photo","summary":"Test keys only: add one photo to a test group from your backend, with no phone, to build and test your integration. The photo is cleaned, fingerprinted and stored like a camera photo, but marked trust weak with one check, test_upload, because nothing about how it was taken was checked. A live key is refused, and a test key never reaches a live group, so a live group's photos only ever come from the seller's phone. Like every test group, it and its certificate are deleted 24 hours after it starts. A business holds at most 200 test photos and 50 test groups at once, not counting retracted groups.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"Content-Length","in":"header","required":false,"description":"Orbit photo uploads and PixelTrace checks and camera uploads share a photo capacity limit per server: 16 requests and 128 MB of uploaded bytes, with at most 2 requests and 64 MB per business across its shops and keys. These limits include receiving and processing. Content-Length reserves bytes before the body is read; without it the call reserves its maximum body size. Actual streamed bytes are counted too. Uploads must arrive within 120 seconds and wait at most 20 seconds for a photo worker. Public demos use separate capacity: 2 requests, 16 MB and one photo worker. Demo traffic cannot take paid photo places. A busy refusal does not save photos. Wait Retry-After seconds before sending the same upload again.","schema":{"type":"integer"}}],"requestBody":{"required":true,"description":"One JPEG, PNG or WebP photo's bytes, 640 to 4096 pixels on its longest side and up to 8 MB, with the matching Content-Type, for example curl --data-binary @photo.png. No PDF, JSON or base64.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}}}}}},"/api/v1/pixel-trace/captures/{captureId}/test-confirm":{"post":{"operationId":"pixel-trace-test-confirm","summary":"Test keys only: confirm a test group in place of the seller, so you can publish it. The manifest is signed with the test signing key, exactly as the camera page's confirmation is, and the group is ready to publish within a day.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"photoIds":{"type":"array","items":{"type":"string"},"description":"Every photo in the group, each once, in the order you want. Leave it out, or send no body, to keep the upload order."}}}}}}}},"/api/v1/pixel-trace/captures/{captureId}/complete":{"post":{"operationId":"pixel-trace-complete","summary":"Publish a confirmed group once the listing goes live. Every photo is compared with earlier published photos you may see, and the group gets its public certificate. Two groups holding the same photo published at the same moment still find each other. Publishing a published group again answers it as it is, and finishes any photo not yet compared.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"marketplaceName":{"type":"string","description":"Shown on the certificate. Longer than 120 characters is cut."},"listingUrl":{"type":"string","description":"The listing page, a full https:// address up to 2,000 characters. A test key may use http://. The body may be left out."}}}}}}}},"/api/v1/pixel-trace/captures/{captureId}/retract":{"post":{"operationId":"pixel-trace-retract","summary":"Cancel a capturing group or take back a ready or published group, for example when the listing is removed. The camera link closes immediately and no more photos can be uploaded. Its fingerprints and photo files are deleted and a previously published certificate shows it as retracted. An unpublished group never gets a public certificate or badge. Safe to repeat.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}]}},"/api/v1/pixel-trace/check":{"post":{"operationId":"pixel-trace","summary":"Has this photo, or an edited copy of it (shrunk, cropped, turned, brightened), been published before? Searches only the selected shop's published photos, even when the same business has other shops. Other shops' photos are never searched, and these photos are never searched for them. A test key searches only test-key groups. Nothing is kept.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"Content-Length","in":"header","required":false,"description":"Orbit photo uploads and PixelTrace checks and camera uploads share a photo capacity limit per server: 16 requests and 128 MB of uploaded bytes, with at most 2 requests and 64 MB per business across its shops and keys. These limits include receiving and processing. Content-Length reserves bytes before the body is read; without it the call reserves its maximum body size. Actual streamed bytes are counted too. Uploads must arrive within 120 seconds and wait at most 20 seconds for a photo worker. Public demos use separate capacity: 2 requests, 16 MB and one photo worker. Demo traffic cannot take paid photo places. A busy refusal does not save photos. Wait Retry-After seconds before sending the same upload again.","schema":{"type":"integer"}}],"requestBody":{"required":true,"description":"The photo's bytes, at least 640 pixels on the longest side and up to 15 MB: JPEG (up to 60 megapixels), PNG or WebP (up to 25 megapixels). Send Content-Type image/jpeg, image/png, image/webp, so the website passes the bytes on unchanged. No JSON, no base64 and no HEIC.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}}},"/api/v1/pixel-trace/settings":{"get":{"operationId":"pixel-trace-get-settings","summary":"Your PixelTrace settings. An account that never changed them gets the defaults. Needs a key with the settings permission (or read); a live key may read them.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}}]},"put":{"operationId":"pixel-trace-set-settings","summary":"Change your settings. Only the fields sent change. Needs a test key with the settings permission: a live key is refused with KEY_NOT_ALLOWED. There is no network setting: photos are only ever matched within your own shop, so a \"mode\" other than \"isolated\" is refused with INVALID_SETTING.","description":"Auth: Authorization: Bearer with your API key (test or live), from your backend. A test key needs the pixel-trace permission.","tags":["PixelTrace"],"parameters":[{"name":"marketplaceId","in":"query","required":false,"description":"The id of the shop this call is for, from GET /api/v1/marketplaces. May be left out while your business has one shop. With several, a call from a whole-business key without it is refused with 400 MARKETPLACE_ID_REQUIRED. A key limited to one shop always works with its own shop, so it may leave marketplaceId out even when your business has several shops. Send it once; naming it twice is 400 INVALID_FIELD at /query/marketplaceId.","schema":{"type":"string"}},{"name":"PCIFIC-Signature","in":"header","required":false,"description":"Needed only while your business has request signing switched on (API keys, Request signing on the dashboard); ignored while it is off. t=<Unix seconds>,v1=<lowercase hex HMAC-SHA256 of t, a dot, the method in capitals (GET, POST), a dot, the path called, for example /api/v1/dispute-pack/sales, with its ?query, written the way a standard URL parser writes it (in Node, new URL(address).pathname + search), a dot, and the exact body bytes, empty for a GET>, keyed with your business's request signing secret as text. See Request signing in the API description.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"PixelTrace on or off. Off refuses new groups and checks."},"keepPhotos":{"type":"boolean","description":"false is zero retention: photo files are deleted when a group is published, and only fingerprints stay."},"previewFormat":{"type":"string","description":"webp or jpeg."},"previewSize":{"type":"integer","description":"The preview's longest side, 160 to 1024 pixels."},"minPhotos":{"type":"integer","description":"Photos a group needs before the seller can confirm, 1 to 12."},"publicLevels":{"type":"array","items":{"type":"string"},"description":"The match levels the public certificate may show: same_photo, likely_same, possibly_related. [] shows none."},"codePrefix":{"type":"string","description":"The letters new codes start with, 2 to 5 letters A to Z. PCF goes back to the standard. Codes already issued keep their letters."},"photoSize":{"type":"integer","description":"The longest side of each photo the camera page takes, in pixels: 1080, 1440, 1920 or 2560. A phone whose camera gives less sends what it has. Larger photos take longer to send."},"openWithinMinutes":{"type":"integer","description":"How long a camera link waits to be opened, 5 to 10080 minutes (a week), default 15 for live listings. With a test key, PUT {\"openWithinMinutes\": 1440} to /api/v1/pixel-trace/settings?marketplaceId=<shop id> for do-it-later links. The saved setting applies to new links and keeps the 30-minute photo session and 1-day publish window."},"captureMinutes":{"type":"integer","description":"How long the seller has to take and confirm photos once they open the link, 5 to 120."}}}}}}}},"/api/v1/pixel-trace/certificates/{code}":{"get":{"operationId":"pixel-trace-certificate","summary":"A published group's public record, for anyone with its code, in any letter case. A web page cannot prove where a photo came from, so a photo's trust level (strong, normal or weak, with each check in plain words) is evidence, not proof that a camera produced the pixels.","description":"Auth: none, public.","tags":["PixelTrace"],"parameters":[{"name":"code","in":"path","required":true,"description":"A group's public code, for example PCF-IMG-K7M2QX-R4TN9B, in any letter case.","schema":{"type":"string"}}],"security":[]}},"/api/v1/pixel-trace/certificates/{code}/badge.svg":{"get":{"operationId":"pixel-trace-badge","summary":"A badge for the listing page: \"PixelTrace submitted evidence\" and the code, as an SVG image 248 by 44 pixels. Link it to the group's certificateUrl. A retracted group's badge says it was retracted, and a demo group's says it is demo evidence. A test group's says it is a test. Kept by browsers for 5 minutes.","description":"Auth: none, public.","tags":["PixelTrace"],"parameters":[{"name":"code","in":"path","required":true,"description":"A group's public code, for example PCF-IMG-K7M2QX-R4TN9B, in any letter case.","schema":{"type":"string"}}],"security":[]}},"/api/v1/pixel-trace/jwks.json":{"get":{"operationId":"pixel-trace-jwks","summary":"The public keys that check every kept group's signed manifest, also at /.well-known/jwks.json. The newest key in each separate test or production ring signs that kind of group; older keys stay while groups they signed are kept. Test keys are named test or test-YYYY-MM-DD. Production keys are named pixel-trace-1 or pixel-trace-YYYY-MM-DD. The signature is Ed25519 over the manifest exactly as returned; pick the key whose kid is the group's keyId. Production verification must also require test: false inside the verified manifest and reject test key IDs. Legacy signatures still verify, but lack a signed test flag and must be rejected for production use.","description":"Auth: none, public.","tags":["PixelTrace"],"parameters":[],"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/link":{"post":{"operationId":"pixel-trace-camera-link","summary":"Check a camera link before showing the phone controls or QR code. This never binds a phone, exposes saved photos or extends the link's life.","description":"Auth: the ticket from the camera link, sent by PCIFIC's camera page on the seller's phone. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"string","description":"The ticket from the cameraUrl's #t= part."}},"required":["ticket"]}}}},"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/open":{"post":{"operationId":"pixel-trace-camera-open","summary":"PCIFIC's camera page, on the seller's phone, opens the link. The first browser binds the group to its own key, gets the camera cookie, and the seller's captureMinutes start; any other browser after that is refused and counted in camera.refusedOpens, and can carry on with POST .../move. A web page cannot prove where a photo came from, so a photo's trust level (strong, normal or weak, with each check in plain words) is evidence, not proof that a camera produced the pixels.","description":"Auth: the ticket from the camera link, sent by PCIFIC's camera page on the seller's phone. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"User-Agent","in":"header","required":true,"description":"Must be a phone or tablet browser.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"string","description":"The ticket from the cameraUrl's #t= part."},"deviceKey":{"type":"object","description":"The public half of an ECDSA P-256 key the phone's browser made and will not give out, as a JWK: x and y in base64url.","properties":{"kty":{"type":"string","description":"Key type, EC."},"crv":{"type":"string","description":"Curve, P-256."},"x":{"type":"string","description":"The key's x coordinate, 32 bytes in base64url."},"y":{"type":"string","description":"The key's y coordinate, 32 bytes in base64url."}},"required":["x","y"]},"device":{"type":"object","description":"{touchPoints, coarsePointer, screen, motion}: what the browser says about the phone. A tablet asking for desktop sites counts when coarsePointer (a finger is the main pointer) is true. screen, [width, height, pixel ratio], is kept as sent.","properties":{"touchPoints":{"type":"integer","description":"How many fingers the screen can sense at once (navigator.maxTouchPoints)."},"coarsePointer":{"type":"boolean","description":"Whether a finger is the main pointer (the pointer: coarse media query)."},"screen":{"type":"array","items":{"type":"number"},"description":"[width, height, pixel ratio], for example [390, 844, 3]. Kept as sent."},"motion":{"type":"string","description":"Motion sensor permission: granted, denied or unavailable."}}}},"required":["ticket","deviceKey"]}}}},"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/move":{"post":{"operationId":"pixel-trace-camera-move","summary":"Carry on in another browser, for example after opening the link inside a chat app. The browser that first opened it shows a six-character moveCode; typing it here moves the group, with its photos, to this browser, and the first browser's cookie stops working.","description":"Auth: the ticket from the camera link, sent by PCIFIC's camera page on the seller's phone. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"User-Agent","in":"header","required":true,"description":"Must be a phone or tablet browser.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticket":{"type":"string","description":"The ticket from the cameraUrl's #t= part."},"moveCode":{"type":"string","description":"The code the first browser shows, in any letter case."},"deviceKey":{"type":"object","description":"This browser's own ECDSA P-256 public key, as for open.","properties":{"kty":{"type":"string","description":"Key type, EC."},"crv":{"type":"string","description":"Curve, P-256."},"x":{"type":"string","description":"The key's x coordinate, 32 bytes in base64url."},"y":{"type":"string","description":"The key's y coordinate, 32 bytes in base64url."}},"required":["x","y"]},"device":{"type":"object","description":"As for open.","properties":{"touchPoints":{"type":"integer","description":"How many fingers the screen can sense at once (navigator.maxTouchPoints)."},"coarsePointer":{"type":"boolean","description":"Whether a finger is the main pointer (the pointer: coarse media query)."},"screen":{"type":"array","items":{"type":"number"},"description":"[width, height, pixel ratio], for example [390, 844, 3]. Kept as sent."},"motion":{"type":"string","description":"Motion sensor permission: granted, denied or unavailable."}}}},"required":["ticket","moveCode","deviceKey"]}}}},"security":[]}},"/api/v1/pixel-trace/camera/{captureId}":{"get":{"operationId":"pixel-trace-camera-read","summary":"The camera page reads its group again, for example after a reload. Only the seller's phone browser that opened the camera link can call this; an API key on its own gets 409 PIXEL_TRACE_CAMERA_NOT_OPENED. From your own server, use GET /api/v1/pixel-trace/captures/{captureId} instead.","description":"Auth: the pixel_trace_camera cookie that opening the link set on the seller's phone. Only PCIFIC's camera page on that phone holds it. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"pixel_trace_camera","in":"cookie","required":true,"description":"Set by POST .../open on the phone that opened the link.","schema":{"type":"string"}}],"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/shots":{"post":{"operationId":"pixel-trace-camera-shot","summary":"A code for one photo that works once, for 60 seconds, asked for when the photo is about to be sent. Asking again for a shot whose photo never arrived gives a fresh code for the same shot.","description":"Auth: the pixel_trace_camera cookie that opening the link set on the seller's phone. Only PCIFIC's camera page on that phone holds it. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"pixel_trace_camera","in":"cookie","required":true,"description":"Set by POST .../open on the phone that opened the link.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"shotId":{"type":"string","description":"A new UUID for this shutter press."},"signature":{"type":"string","description":"The phone key's ECDSA P-256 SHA-256 signature over pixel-trace-shot:{captureId}:{shotId}, the 64 byte r and s in base64url."}},"required":["shotId","signature"]}}}},"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/photos":{"post":{"operationId":"pixel-trace-camera-upload","summary":"One photo and the signs of how it was taken, signed by the phone. It is checked, cleaned of hidden metadata, fingerprinted and stored before the answer. Sending the same shot again after a lost answer answers the saved photo.","description":"Auth: the pixel_trace_camera cookie that opening the link set on the seller's phone. Only PCIFIC's camera page on that phone holds it. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"x-pixel-trace-shot","in":"header","required":true,"description":"The shotId the shot code was given for.","schema":{"type":"string"}},{"name":"x-pixel-trace-shot-code","in":"header","required":true,"description":"The shot code from POST .../shots.","schema":{"type":"string"}},{"name":"x-pixel-trace-signature","in":"header","required":true,"description":"The phone key's signature over pixel-trace-photo:{captureId}:{shotId}:{shotCode}:{SHA-256 of the photo in hex}:{SHA-256 of the evidence in hex}, base64url.","schema":{"type":"string"}},{"name":"pixel_trace_camera","in":"cookie","required":true,"description":"Set by POST .../open on the phone that opened the link.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}},{"name":"Content-Length","in":"header","required":false,"description":"Orbit photo uploads and PixelTrace checks and camera uploads share a photo capacity limit per server: 16 requests and 128 MB of uploaded bytes, with at most 2 requests and 64 MB per business across its shops and keys. These limits include receiving and processing. Content-Length reserves bytes before the body is read; without it the call reserves its maximum body size. Actual streamed bytes are counted too. Uploads must arrive within 120 seconds and wait at most 20 seconds for a photo worker. Public demos use separate capacity: 2 requests, 16 MB and one photo worker. Demo traffic cannot take paid photo places. A busy refusal does not save photos. Wait Retry-After seconds before sending the same upload again.","schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"evidence":{"type":"string","description":"JSON, up to 128 KB: tap, motion, frames, frameTimes, device and shotAt, as the camera page records them."},"photo":{"type":"string","format":"binary","description":"The JPEG the camera page made, up to 8 MB, 640 to 4096 pixels on its longest side."}},"required":["evidence","photo"]}}}},"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/photos/{photoId}":{"delete":{"operationId":"pixel-trace-camera-delete-photo","summary":"The seller deletes a photo before confirming. Its files go, and the rest keep their order.","description":"Auth: the pixel_trace_camera cookie that opening the link set on the seller's phone. Only PCIFIC's camera page on that phone holds it. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"photoId","in":"path","required":true,"description":"A photo id from the camera upload answer.","schema":{"type":"string","format":"uuid"}},{"name":"pixel_trace_camera","in":"cookie","required":true,"description":"Set by POST .../open on the phone that opened the link.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/cancel":{"post":{"operationId":"pixel-trace-camera-cancel","summary":"The seller cancels a capturing group from the phone that opened the camera link. Its fingerprints and photo files are deleted and the link closes. For ready or completed groups, the shop uses retract instead. Only the seller's phone browser that opened the camera link can call this; an API key on its own gets 409 PIXEL_TRACE_CAMERA_NOT_OPENED. From your own server, cancel with POST /api/v1/pixel-trace/captures/{captureId}/retract instead.","description":"Auth: the pixel_trace_camera cookie that opening the link set on the seller's phone. Only PCIFIC's camera page on that phone holds it. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"pixel_trace_camera","in":"cookie","required":true,"description":"Set by POST .../open on the phone that opened the link.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"security":[]}},"/api/v1/pixel-trace/camera/{captureId}/confirm":{"post":{"operationId":"pixel-trace-camera-confirm","summary":"The seller confirms every photo in the group, in their order. The manifest is signed, the group is ready for the shop to publish within a day, and the camera cookie is deleted. The same signed confirmation sent again, after its answer was lost, gets the same answer.","description":"Auth: the pixel_trace_camera cookie that opening the link set on the seller's phone. Only PCIFIC's camera page on that phone holds it. No API key.","tags":["PixelTrace"],"parameters":[{"name":"captureId","in":"path","required":true,"description":"The group id from POST /api/v1/pixel-trace/captures.","schema":{"type":"string","format":"uuid"}},{"name":"pixel_trace_camera","in":"cookie","required":true,"description":"Set by POST .../open on the phone that opened the link.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"1 to 255 visible ASCII characters, for example a new UUID per piece of work. Save this ticket with the method, URL, Content-Type, Accept, X-PCIFIC-Test-AI mode and exact body bytes before sending. Retry unchanged within 24 hours for the original successful response with Idempotent-Replayed: true and no repeated work or charge. Refused replies are not saved. Ask streams replay all events through done; replace partial text. Without a key each request runs independently.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"photoIds":{"type":"array","items":{"type":"string"},"description":"Every photo in the group, each once, in the seller's order."},"signature":{"type":"string","description":"The phone key's signature over pixel-trace-confirm:{captureId}:{photoIds joined with commas}, base64url."}},"required":["photoIds","signature"]}}}},"security":[]}},"/api/key-link":{"post":{"operationId":"key-link","summary":"Link a test key to a script without showing the key in its output.","description":"No API key or browser cookies. Key linking only makes test keys: a start with \"mode\" other than \"test\" is refused with 400 INVALID_FIELD at /mode, and a live key is made on the dashboard's API keys page. Without action, start a connection. With action poll, wait, collect or cancel, send its id and X-PCIFIC-Link-Token. Wait holds the request for up to 25 seconds (or waitSeconds, 1 to 25) until the status leaves pending. Collect returns a plain text PCIFIC_TEST_KEY line once, with a PCIFIC_MARKETPLACE_ID line for a key limited to one shop. Browser Origin or Sec-Fetch-Site headers are refused. One network can start 5 connections an hour; a sixth is refused with 429 RATE_LIMITED and Retry-After.","tags":["Account"],"parameters":[{"name":"X-PCIFIC-Link-Token","in":"header","required":false,"description":"The pollToken from starting the connection. Required for poll, wait, collect and cancel.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"suggestedName":{"type":"string","description":"Project name, 1 to 100 characters of plain text: no HTML tags, control characters or text direction marks."},"destination":{"type":"string","description":"Destination file, 1 to 300 characters of plain text, for example .env."},"scopes":{"type":"array","items":{"type":"string"},"description":"Optional non-empty list of requested permissions: orbit, safeguard, ask-pcific, pixel-trace, message-check, dispute-pack, settings, listing-fields, documents, webhooks, read, logs. The owner can untick them before approval. Omit scopes to pre-tick the default test key permissions: orbit, safeguard, ask-pcific, pixel-trace, message-check, dispute-pack, read."},"shop":{"type":["string","null"],"description":"Optional: the name of the shop the key is for, exactly as your business named it, up to 80 characters of plain text: no HTML tags, control characters or text direction marks. Leave it out, or send null, for a key for every shop. It is checked when the owner approves, because the business is known only once they type the code. If no shop has exactly this name, the owner must choose one shop, or every shop, before the key is made."},"mode":{"type":"string","description":"Optional, and only \"test\": key linking only makes test keys. Any other value, including \"live\", is refused with 400 INVALID_FIELD. Make a live key on the dashboard's API keys page."}},"required":["suggestedName","destination"],"not":{"required":["action"]}},{"type":"object","required":["action","id"],"properties":{"action":{"type":"string","enum":["poll","wait","collect","cancel"]},"id":{"type":"string","format":"uuid"},"waitSeconds":{"type":"integer","description":"Only for wait: whole seconds to hold the request while pending (1 to 25, default 25)."}}}]}}}},"security":[]}}},"components":{"schemas":{}}}