{"openapi":"3.1.0","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"SwapRouter API","version":"1.0.0","description":"Non-custodial swap routing API. Every monetary value is a decimal integer string in the asset’s smallest units (wei, satoshis, piconero); no floating-point amounts. Timestamps in JSON are Unix milliseconds; the webhook signature timestamp is Unix seconds. Anonymous requests are supported where security includes {}. Integrator browser calls use X-Public-Key from allowed origins; server calls use Authorization: Bearer sk_…. Swap read/report calls also accept the per-swap bearer secret. Default per-minute limits are 120 requests, 20 quotes and 6 creations per IP; integrator server keys receive ten times these limits per integrator. Limits may be configured by the operator. All paths are relative to the service root."},"servers":[{"url":"/","description":"The API service root."}],"paths":{"/v1/partner/config":{"get":{"operationId":"partnerConfig","summary":"Partner features on this server","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"Whether email sign-in is on, and the claim minimum.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"boolean"},"minClaimMicroUsd":{"type":"string","pattern":"^\\d+$"}},"required":["email","minClaimMicroUsd"]}}}}}}},"/v1/partner/signup":{"post":{"operationId":"partnerSignup","summary":"Create an account","tags":["Partners"],"security":[{}],"responses":{"201":{"description":"The account number, shown once.","content":{"application/json":{"schema":{"type":"object","properties":{"accountNumber":{"type":"string","pattern":"^([0-9A-HJKMNP-TV-Z]{4}-){6}[0-9A-HJKMNP-TV-Z]{4}$"}},"required":["accountNumber"]}}},"headers":{"Set-Cookie":{"description":"Session cookie: HttpOnly, Secure (not on localhost), SameSite=Strict, 8 hours.","schema":{"type":"string"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}}}},"/v1/partner/login":{"post":{"operationId":"partnerLogin","summary":"Sign in with the account number","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"Signed in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}},"headers":{"Set-Cookie":{"description":"Session cookie: HttpOnly, Secure (not on localhost), SameSite=Strict, 8 hours.","schema":{"type":"string"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Unknown number.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_login"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"accountNumber":{"type":"string","maxLength":64}},"required":["accountNumber"]}}}}}},"/v1/partner/logout":{"post":{"operationId":"partnerLogout","summary":"Sign out","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"Signed out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}}}},"/v1/partner/me":{"get":{"operationId":"partnerMe","summary":"Dashboard: keys, settings, sign-in methods, earnings, swaps and payouts","tags":["Partners"],"security":[{"PartnerSession":[]}],"responses":{"200":{"description":"Everything the dashboard shows. No swap user addresses. Money is micro-USD strings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerMe"}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}}}}},"/v1/partner/number/rotate":{"post":{"operationId":"partnerRotateNumber","summary":"Replace the account number; other sessions end","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"The account number, shown once.","content":{"application/json":{"schema":{"type":"object","properties":{"accountNumber":{"type":"string","pattern":"^([0-9A-HJKMNP-TV-Z]{4}-){6}[0-9A-HJKMNP-TV-Z]{4}$"}},"required":["accountNumber"]}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/keys":{"post":{"operationId":"partnerCreateKeys","summary":"Create or replace pk_/sk_ keys","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"The secret key is shown once.","content":{"application/json":{"schema":{"type":"object","properties":{"publicKey":{"type":"string"},"secretKey":{"type":"string"}},"required":["publicKey","secretKey"]}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/keys/revoke":{"post":{"operationId":"partnerRevokeKeys","summary":"Revoke keys","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"Revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/settings":{"post":{"operationId":"partnerSettings","summary":"Allowed origins and webhook URL","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"allowedOrigins":{"type":"array","maxItems":10,"items":{"type":"string","format":"uri"}},"webhookUrl":{"type":["string","null"],"format":"uri"}},"required":["allowedOrigins","webhookUrl"]}}}},"responses":{"200":{"description":"Saved. A new webhook secret is returned once.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":true},"webhookSecret":{"type":"string"}}}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"SECRETS_KEY not set.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["webhooks_off"]}},"required":["error"]}}}}}}},"/v1/partner/providers":{"get":{"operationId":"partnerProviders","summary":"Providers this integration uses","tags":["Partners"],"security":[{"PartnerSession":[]}],"responses":{"200":{"description":"Every provider in the registry, on unless turned off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProviders"}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}}}},"post":{"operationId":"partnerSetProviders","summary":"Turn providers off for this integration","description":"Replaces the set of providers turned off. Quotes for your keys, embed and MCP never ask them, and booking refuses routes through them. An empty list turns every provider on.","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"disabled":{"type":"array","maxItems":100,"items":{"type":"string","pattern":"^[a-z0-9]+$","maxLength":32}}},"required":["disabled"]}}}},"responses":{"200":{"description":"Saved; the new list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProviders"}}}},"400":{"description":"Invalid body, or an id that is not in the registry (`unknown_provider`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/webhook/rotate":{"post":{"operationId":"partnerRotateWebhookSecret","summary":"New webhook secret","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"Shown once.","content":{"application/json":{"schema":{"type":"object","properties":{"webhookSecret":{"type":"string"}},"required":["webhookSecret"]}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"description":"SECRETS_KEY not set.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["webhooks_off"]}},"required":["error"]}}}}}}},"/v1/partner/payout":{"post":{"operationId":"partnerPayoutDestination","summary":"Default payout coin and address","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"asset":{"type":"string","enum":["usdc:base","usdc:arbitrum","usdc:ethereum","xmr"]},"address":{"type":"string","maxLength":128}},"required":["asset","address"]}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/claim":{"post":{"operationId":"partnerClaim","summary":"Claim the whole balance (from $100); paid by hand","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"asset":{"type":"string","enum":["usdc:base","usdc:arbitrum","usdc:ethereum","xmr"]},"address":{"type":"string","maxLength":128}},"required":["asset","address"]}}}},"responses":{"201":{"description":"Pending payout.","content":{"application/json":{"schema":{"type":"object","properties":{"payout":{"$ref":"#/components/schemas/PartnerPayout"}},"required":["payout"]}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/logins/{id}/delete":{"post":{"operationId":"partnerRemoveLogin","summary":"Remove a passkey, wallet or email","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"Removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"404":{"description":"No such login.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["not_found"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/partner/wallet/nonce":{"post":{"operationId":"partnerSiweNonce","summary":"SIWE message to sign (single use, 10 minutes)","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"EIP-4361 message.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"chainId":{"type":"integer","enum":[1,8453,42161,10,137]}},"required":["address","chainId"]}}}}}},"/v1/partner/wallet/login":{"post":{"operationId":"partnerSiweLogin","summary":"Sign in with a wallet","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"Signed in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}},"headers":{"Set-Cookie":{"description":"Session cookie: HttpOnly, Secure (not on localhost), SameSite=Strict, 8 hours.","schema":{"type":"string"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Bad signature, nonce, domain, chain or time; or no account.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"message":{"type":"string","maxLength":1024},"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}$"}},"required":["message","signature"]}}}}}},"/v1/partner/wallet/add":{"post":{"operationId":"partnerSiweAdd","summary":"Add a wallet login","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"message":{"type":"string","maxLength":1024},"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}$"}},"required":["message","signature"]}}}},"responses":{"200":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"409":{"description":"Wallet is on an account.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["taken"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/passkey/add/options":{"post":{"operationId":"partnerPasskeyAddOptions","summary":"WebAuthn registration options","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}},"responses":{"200":{"description":"PublicKeyCredentialCreationOptionsJSON.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/passkey/add":{"post":{"operationId":"partnerPasskeyAdd","summary":"Add a passkey","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"response":{"type":"object","description":"WebAuthn credential JSON from the browser."}},"required":["response"]}}}},"responses":{"200":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"409":{"description":"Passkey is on an account.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["taken"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/passkey/login/options":{"post":{"operationId":"partnerPasskeyLoginOptions","summary":"WebAuthn sign-in options","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"PublicKeyCredentialRequestOptionsJSON.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false}}}}}},"/v1/partner/passkey/login":{"post":{"operationId":"partnerPasskeyLogin","summary":"Sign in with a passkey","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"Signed in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}},"headers":{"Set-Cookie":{"description":"Session cookie: HttpOnly, Secure (not on localhost), SameSite=Strict, 8 hours.","schema":{"type":"string"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Not verified.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_login"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"response":{"type":"object","description":"WebAuthn credential JSON from the browser."}},"required":["response"]}}}}}},"/v1/partner/email/add":{"post":{"operationId":"partnerEmailAdd","summary":"Add an email (sends a confirmation link). 404 when SMTP is off","tags":["Partners"],"security":[{"PartnerSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string","format":"email"}},"required":["email"]}}}},"responses":{"200":{"description":"Link sent.","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"const":true}}}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"No session.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["signed_out"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"404":{"description":"Email is off.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["not_found"]}},"required":["error"]}}}},"409":{"description":"Email is on an account, or this account has one.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["taken","email_exists"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/partner/email/login":{"post":{"operationId":"partnerEmailLogin","summary":"Email a sign-in link. Same answer whether or not the email has an account","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"Sent if the email has a confirmed account.","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"const":true}}}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"404":{"description":"Email is off.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["not_found"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string","format":"email"}},"required":["email"]}}}}}},"/v1/partner/email/verify":{"post":{"operationId":"partnerEmailVerify","summary":"Use a link token (from the #email= fragment)","tags":["Partners"],"security":[{}],"responses":{"200":{"description":"Signed in; email confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOk"}}},"headers":{"Set-Cookie":{"description":"Session cookie: HttpOnly, Secure (not on localhost), SameSite=Strict, 8 hours.","schema":{"type":"string"}}}},"400":{"description":"Invalid body or values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Expired or used.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_link"]}},"required":["error"]}}}},"403":{"description":"State changes must come from our own Origin.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["bad_origin"]}},"required":["error"]}}}},"415":{"description":"Body must be application/json.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}}}},"429":{"$ref":"#/components/responses/RateLimited"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"token":{"type":"string","pattern":"^[\\w-]{43}$"}},"required":["token"]}}}}}},"/v1/assets":{"get":{"operationId":"assets","summary":"List supported assets","security":[{},{"PublicKey":[]},{"IntegratorSecret":[]}],"responses":{"200":{"description":"Assets supported by active providers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsResponse"}}},"headers":{"Cache-Control":{"schema":{"const":"public, max-age=60"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"}},"parameters":[{"name":"chain","in":"query","schema":{"type":"string"},"description":"Optional chain id, such as base. Unknown chains return an empty list. Omitting this may return about 12 MB."}]}},"/v1/quote":{"post":{"operationId":"quote","summary":"Find and rank routes","security":[{},{"PublicKey":[]},{"IntegratorSecret":[]}],"responses":{"200":{"description":"Routes ranked best first, plus failures and asset metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/InvalidQuote"},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/NoProvidersEnabled"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMedia"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Busy"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteBody"}}}},"description":"Results normally arrive within six seconds; slow providers are omitted. Money is in atomic units. Quote bodies are limited to 2048 bytes. Responses are not cached."}},"/v1/quote/stream":{"post":{"operationId":"quoteStream","summary":"Stream ranked route updates","security":[{},{"PublicKey":[]},{"IntegratorSecret":[]}],"responses":{"200":{"description":"SSE: routes contains RoutesEvent, done contains the final Quote and closes the stream, error contains {\"error\":\"internal\"}. Each routes event replaces the complete ranked list. Use fetch with a stream reader; EventSource cannot POST. A closed stream without done is incomplete.","content":{"text/event-stream":{"schema":{"type":"string"},"x-event-schema":{"$ref":"#/components/schemas/SseEvent"},"example":"event: routes\ndata: {\"stage\":1,\"routes\":[],\"assets\":{}}\n\nevent: done\ndata: {\"from\":\"bitcoin:native\",\"to\":\"monero:native\",\"amount\":\"100000\",\"routes\":[],\"failures\":[],\"assets\":{}}\n\n"}}},"400":{"$ref":"#/components/responses/InvalidQuote"},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/NoProvidersEnabled"},"413":{"$ref":"#/components/responses/BodyTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMedia"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"},"503":{"$ref":"#/components/responses/Busy"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteBody"}}}},"description":"Same input and validation as /v1/quote. Stages: 1 direct, 2 hub, 3 refined. Cancel the fetch to stop. No-store response."}},"/v1/swap":{"post":{"operationId":"createSwap","summary":"Book a recently quoted route","security":[{},{"PublicKey":[]},{"IntegratorSecret":[]}],"responses":{"200":{"description":"Prior swap for this integrator and Idempotency-Key; no new booking.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaySwapResponse"}}}},"201":{"description":"New swap and its private read/report secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSwapResponse"}}}},"400":{"$ref":"#/components/responses/InvalidBooking"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Blocked"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"`rate_changed`: booked output is more than 1% worse than the quoted output; do not fund the refused booking. `provider_disabled`: the route uses a provider the calling integrator turned off; quote again.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["rate_changed","provider_disabled"]}},"required":["error"]}]}}}},"410":{"$ref":"#/components/responses/QuoteExpired"},"415":{"$ref":"#/components/responses/UnsupportedMedia"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"},"502":{"$ref":"#/components/responses/ProviderFailed"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSwapBody"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{8,64}$"},"description":"Only honored with the integrator secret key. Reuses the earlier swap, even if the new request body differs. Sequential replay protection; concurrent first requests are not a documented guarantee."}],"description":"Uses a route from a quote in the last ten minutes. Addresses are checked before providers see them. Funds go straight to providers, never to this service. Multi-leg routes require a compatible refund address for each later leg, floating rates on later legs, and deposit flows after the first leg. Never automatically retry booking. With a server key, an explicit retry using the same Idempotency-Key can return a prior saved swap; it does not guarantee recovery from an interrupted provider booking. No-store response."}},"/v1/swap/{id}":{"get":{"operationId":"getSwap","summary":"Read a swap","security":[{"SwapSecret":[]},{"IntegratorSecret":[]}],"responses":{"200":{"description":"Swap details. No-store response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Use the per-swap secret from creation, or the secret key of the integrator that created it. Wrong or missing authorization returns 404, as does a swap belonging to another integrator. A recognized but invalid integrator secret key returns 401 from middleware."}},"/v1/swap/{id}/sent":{"post":{"operationId":"reportSent","summary":"Report a wallet transaction","security":[{"SwapSecret":[]},{"IntegratorSecret":[]}],"responses":{"200":{"description":"Updated swap. Status polling starts now. No-store response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapResponse"}}}},"400":{"$ref":"#/components/responses/InvalidSent"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/AlreadySent"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SentBody"}}}},"description":"Report the transaction hash for a wallet step (seq defaults to 1). Later wallet steps must be prepared and their preceding payout completed. Starts status tracking once; repeated reports return 409."}},"/v1/swap/{id}/check":{"post":{"operationId":"checkSwap","summary":"Check status now","description":"Asks the swap's providers for its status at the worker's next pass instead of waiting for the next scheduled check. At most once per 5 minutes per swap, and never sooner than a provider allows (Trocador: every other minute). Status normally arrives by provider push; this is for when a user wants it now.","security":[{"SwapSecret":[]},{"IntegratorSecret":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"Checks queued. Returns the swap; read it again in a few seconds. No-store response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Checked less than 5 minutes ago. `Retry-After` gives the seconds to wait.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/Internal"}}}},"/v1/integrator/swaps":{"get":{"operationId":"listSwaps","summary":"List the integrator’s recent swaps","security":[{"IntegratorSecret":[]}],"responses":{"200":{"description":"Ids, states and client references, newest first. No-store response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSwapsResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"}},"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"description":"Default 50. The implementation clamps the supplied numeric limit to 1–200; zero or a nonnumeric value uses 50."}],"description":"Server secret key required. Public keys and swap secrets cannot list swaps."}},"/mcp":{"post":{"operationId":"mcp","summary":"MCP server for AI agents (Streamable HTTP, JSON-RPC)","description":"Model Context Protocol endpoint for protocol 2026-07-28, and 2025-11-25 clients that start with initialize. Stateless: JSON responses only, no sessions or SSE. Tools: quote, swap, status. Resource ui://swaprouter/route-card.html (MCP Apps). One JSON-RPC message per request, at most 4096 bytes, same rate limits as /v1. A browser Origin other than ours gets 403. GET and DELETE answer 405. See docs/18-mcp.md.","security":[{}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer"]},"method":{"type":"string"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC response.","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Notification accepted. No body."},"400":{"description":"Invalid JSON-RPC, unsupported MCP-Protocol-Version (-32022) or header mismatch (-32020)."},"403":{"description":"Origin not allowed."},"404":{"description":"Unknown method (2026-07-28 requests)."},"413":{"description":"Body too large."},"415":{"description":"Content-Type is not application/json."},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/v1/openapi.json":{"get":{"operationId":"openapi","summary":"Read this OpenAPI document","security":[{},{"PublicKey":[]},{"IntegratorSecret":[]}],"responses":{"200":{"description":"OpenAPI 3.1 JSON. Available after openapiRoute is mounted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenApiDocument"}}},"headers":{"Cache-Control":{"schema":{"const":"public, max-age=300"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/Internal"}}}},"/v1/swap/{id}/step":{"post":{"operationId":"prepareStep","summary":"Prepare a funded wallet step","description":"After the first swap settles in the connected wallet, quote and book step two once using verified proceeds. Review the refreshed estimate before signing the returned transaction or paying its deposit.","security":[{"SwapSecret":[]},{"IntegratorSecret":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seq":{"type":"integer","minimum":2,"maximum":3}},"required":["seq"],"additionalProperties":false}}}},"responses":{"200":{"description":"Updated swap. Status polling starts now. No-store response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapResponse"}}}},"400":{"description":"Invalid step request."},"403":{"description":"Risk screening blocked the route."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"step_not_ready, received_amount_unknown, or step_already_booked. Never fund a second order."},"502":{"description":"Provider failed or returned an invalid quote/transaction. A create is never retried."}}}},"/v1/swap/{id}/deposit-tx":{"post":{"operationId":"depositTx","summary":"Build an unsigned wallet payment for a booked deposit","description":"Builds the exact saved EVM or Solana deposit transfer for the booked sender. Request immediately before signing.","security":[{"SwapSecret":[]},{"IntegratorSecret":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seq":{"type":"integer","minimum":1,"maximum":2}},"required":["seq"],"additionalProperties":false}}}},"responses":{"200":{"description":"Unsigned payment","content":{"application/json":{"schema":{"type":"object","required":["tx"],"properties":{"tx":{"$ref":"#/components/schemas/Transaction"}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Payment unavailable or expired."},"502":{"description":"Could not build payment."}}}}},"webhooks":{"swap.updated":{"post":{"operationId":"swapUpdated","summary":"Swap order state changed","description":"POSTed to the integrator webhook URL when an order state changes. Verify before parsing JSON: split Swap-Signature into t=<Unix seconds> and v1=<64 hex digits>; compute HMAC-SHA256 using the UTF-8 webhook secret over the exact bytes of the ASCII timestamp, a dot, and the unmodified request body (<t>.<rawBody>). Compare the 32 digest bytes in constant time. Reject missing, malformed or ambiguous headers and timestamps more than 300 seconds in the past or future (configurable tolerance in the SDK). Do not reserialize JSON before checking. The webhook secret is separate from the integrator API secret key. Return any 2xx promptly after durable acceptance; other statuses, network errors and timeouts trigger retries with exponential backoff capped at six hours. Retries retain the event id and body and receive a fresh signature timestamp. Deduplicate by event id. The sender follows no redirects and times out after ten seconds.","security":[],"parameters":[{"name":"Swap-Signature","in":"header","required":true,"schema":{"type":"string","pattern":"^t=[0-9]+,v1=[0-9a-f]{64}$"},"description":"HMAC-SHA256 signature. Example: t=1700000000,v1=<64 lowercase hex digits>. Signed bytes are <t>.<rawBody>."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapUpdated"}}}},"responses":{"2XX":{"description":"Accepted. Duplicate event ids should also return 2xx."},"default":{"description":"Any non-2xx result causes a later delivery retry."}}}}},"components":{"securitySchemes":{"PartnerSession":{"type":"apiKey","in":"cookie","name":"__Host-partner","description":"Partner dashboard session (cookie `partner` on localhost). Browser only, same origin."},"PublicKey":{"type":"apiKey","in":"header","name":"X-Public-Key","description":"pk_ plus 24 base64url characters. Browser requests must originate from an origin allowed for the integrator. Browsers supply Origin automatically. The service’s own embed origin may also use public keys. A public key grants neither listing nor swap read access."},"IntegratorSecret":{"type":"http","scheme":"bearer","bearerFormat":"sk_<43 base64url characters>","description":"Server-only integrator secret key; send exclusively in Authorization. Supports Idempotency-Key, listing swaps, and reading/reporting the integrator’s own swaps. Never expose in a browser."},"SwapSecret":{"type":"http","scheme":"bearer","bearerFormat":"43 base64url characters","description":"Private per-swap secret returned only at creation. Send exclusively as Authorization: Bearer <secret>. Wrong or absent swap secrets return 404."}},"schemas":{"PartnerOk":{"type":"object","properties":{"ok":{"const":true}},"required":["ok"]},"PartnerPayout":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"amountMicroUsd":{"type":"string","pattern":"^-?\\d+$","description":"Micro-USD (1 = $0.000001)."},"asset":{"type":"string","enum":["usdc:base","usdc:arbitrum","usdc:ethereum","xmr"]},"address":{"type":"string"},"status":{"type":"string","enum":["pending","paid","rejected"]},"txHash":{"type":["string","null"]},"coinAmount":{"type":["string","null"],"description":"Atomic units the operator sent."},"reason":{"type":["string","null"]},"createdAt":{"type":"integer"},"decidedAt":{"type":["integer","null"]}},"required":["id","amountMicroUsd","asset","address","status","createdAt"]},"PartnerMe":{"type":"object","properties":{"keys":{"type":"object","properties":{"enabled":{"type":"boolean"},"publicKey":{"type":["string","null"]}}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"webhookUrl":{"type":["string","null"]},"webhookSecretSet":{"type":"boolean"},"revSharePct":{"type":"integer"},"logins":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["passkey","wallet","email"]},"label":{"type":"string"},"verified":{"type":"boolean"}}}},"balanceMicroUsd":{"type":"string","pattern":"^-?\\d+$","description":"Micro-USD (1 = $0.000001)."},"minClaimMicroUsd":{"type":"string","pattern":"^-?\\d+$","description":"Micro-USD (1 = $0.000001)."},"totals":{"type":"object","properties":{"swaps":{"type":"integer"},"volumeMicroUsd":{"type":"string","pattern":"^-?\\d+$","description":"Micro-USD (1 = $0.000001)."},"earnedMicroUsd":{"type":"string","pattern":"^-?\\d+$","description":"Micro-USD (1 = $0.000001)."}}},"swaps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"state":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"createdAt":{"type":"integer"},"volumeMicroUsd":{"type":"string","pattern":"^-?\\d+$","description":"Micro-USD (1 = $0.000001)."},"earnedMicroUsd":{"type":"string","pattern":"^-?\\d+$","description":"Micro-USD (1 = $0.000001)."}}}},"payouts":{"type":"array","items":{"$ref":"#/components/schemas/PartnerPayout"}}}},"Atomic":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})$","description":"Integer atomic units as a decimal string, never a float. Use the asset decimals to format."},"AssetId":{"type":"string","maxLength":128,"pattern":"^[a-z0-9-]{1,32}:[A-Za-z0-9-]{1,90}$","description":"Asset id: <chain>:<token>, such as monero:native."},"Timestamp":{"type":"integer","minimum":0,"description":"Unix timestamp in milliseconds."},"Stage":{"type":"integer","enum":[1,2,3]},"RateType":{"type":"string","enum":["fixed","float"]},"OrderState":{"type":"string","enum":["awaiting_deposit","deposit_detected","in_progress","completed","refunded","failed","expired","blocked","action_required"]},"LegState":{"type":"string","enum":["awaiting_deposit","confirming","exchanging","sending","done","refunding","refunded","held","failed","expired"]},"Issue":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"]},"Error":{"type":"object","properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}},"required":["error"],"description":"Errors never echo submitted values. Additional SDK protocol errors are documented in the SDK README."},"AssetRef":{"type":"object","properties":{"symbol":{"type":"string"},"chainId":{"type":"string"},"decimals":{"type":"integer","minimum":0}},"required":["symbol","chainId","decimals"]},"AssetRefs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AssetRef"}},"UsdPrices":{"type":"object","additionalProperties":{"type":"string","pattern":"^[1-9][0-9]*$"},"description":"USD per whole unit of `from` and `to`, in micro-USD (\"1000000\" = $1). Only assets with a known price: stablecoins at $1, BTC, ETH, XMR, SOL and LTC from Kraken, cached about 60 s. Value = amount × price / 10^decimals."},"Asset":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AssetId"},"chainId":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"contract":{"type":["string","null"]},"decimals":{"type":"integer","minimum":0},"isHub":{"type":"boolean"},"canSend":{"type":"boolean"},"canReceive":{"type":"boolean"}},"required":["id","chainId","symbol","name","contract","decimals","isHub","canSend","canReceive"]},"AssetsResponse":{"type":"object","properties":{"assets":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}},"required":["assets"]},"QuoteBody":{"type":"object","properties":{"from":{"$ref":"#/components/schemas/AssetId"},"to":{"$ref":"#/components/schemas/AssetId"},"amount":{"type":"string","pattern":"^[1-9][0-9]{0,77}$","description":"Integer atomic units as a decimal string, never a float. Use the asset decimals to format. What you send, or with exactOut what the recipient gets."},"exactOut":{"type":"boolean","default":false,"description":"Fixed mode, for payments: the recipient gets exactly `amount` of `to`. Only one-step fixed-rate routes from providers that book an exact payout; ranked by the least to send (`costIn`). Booking refuses any payout or deposit other than the one quoted."},"sender":{"type":"string","minLength":1,"maxLength":128},"recipient":{"type":"string","minLength":1,"maxLength":128},"walletSenders":{"$ref":"#/components/schemas/WalletSenders"},"maxPrivacy":{"type":"boolean","default":false,"description":"Only fully private routes: `kycRisk` low and `privacy` 5 (see Route). An empty `routes` list means none qualifies."}},"required":["from","to","amount"],"additionalProperties":false},"NetworkFee":{"type":"object","properties":{"asset":{"$ref":"#/components/schemas/AssetId"},"amount":{"$ref":"#/components/schemas/Atomic"}},"required":["asset","amount"],"description":"Paid on top of the input; for example, gas."},"Leg":{"type":"object","properties":{"provider":{"type":"string"},"via":{"type":"string"},"from":{"$ref":"#/components/schemas/AssetId"},"to":{"$ref":"#/components/schemas/AssetId"},"amountIn":{"$ref":"#/components/schemas/Atomic"},"amountOut":{"$ref":"#/components/schemas/Atomic"},"networkFees":{"type":"array","items":{"$ref":"#/components/schemas/NetworkFee"}},"rateType":{"$ref":"#/components/schemas/RateType"},"etaSeconds":{"type":"number"},"expiresAt":{"$ref":"#/components/schemas/Timestamp"},"kycRating":{"type":"string","enum":["A","B","C","D"]},"flow":{"type":"string","enum":["deposit","wallet"],"description":"How the user pays this step: into a deposit address, or by a transaction their wallet signs. Only the first step can be wallet."},"deferred":{"type":"boolean","description":"Sign this step after the preceding payout arrives in your own wallet. Floating estimate; re-quoted at execution."}},"required":["provider","from","to","amountIn","amountOut","networkFees","rateType"]},"Route":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"stage":{"$ref":"#/components/schemas/Stage"},"amountOut":{"$ref":"#/components/schemas/Atomic"},"netOut":{"$ref":"#/components/schemas/Atomic"},"amountIn":{"$ref":"#/components/schemas/Atomic","description":"What the user sends (the first step's input)."},"costIn":{"$ref":"#/components/schemas/Atomic","description":"amountIn plus fees charged in the source asset. Fixed mode ranks on this, least first."},"exactOut":{"type":"boolean","enum":[true],"description":"Fixed mode: pays exactly amountOut."},"rateType":{"$ref":"#/components/schemas/RateType"},"kycRisk":{"type":"string","enum":["low","medium","high"]},"privacy":{"type":"integer","minimum":0,"maximum":5,"description":"The lowest privacy score of the route's providers: what SwapRouter must keep or send about the user because of them (/docs/providers). 5 = nothing beyond the swap. Absent when a provider isn't scored."},"etaSeconds":{"type":"number"},"needsWallet":{"type":"boolean","description":"A connected wallet signs at least one step (for example a Hyperliquid order). Not possible by QR."},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"}}},"required":["id","key","stage","amountOut","netOut","amountIn","costIn","rateType","kycRisk","legs"],"description":"Ranked by netOut (output after network fees in the target asset), or in Fixed mode (exactOut) by costIn, least first. fixed only when every leg is fixed."},"Failure":{"type":"object","properties":{"provider":{"type":"string"},"stage":{"$ref":"#/components/schemas/Stage"},"reason":{"type":"string","enum":["timeout","error","invalid"]}},"required":["provider","stage","reason"]},"Quote":{"type":"object","properties":{"from":{"$ref":"#/components/schemas/AssetId"},"to":{"$ref":"#/components/schemas/AssetId"},"amount":{"$ref":"#/components/schemas/Atomic"},"exactOut":{"type":"boolean","enum":[true],"description":"The request was Fixed mode: `amount` is what the recipient gets."},"routes":{"type":"array","items":{"$ref":"#/components/schemas/Route"}},"failures":{"type":"array","items":{"$ref":"#/components/schemas/Failure"}},"assets":{"$ref":"#/components/schemas/AssetRefs"},"prices":{"$ref":"#/components/schemas/UsdPrices"},"disabledProviders":{"type":"array","items":{"type":"string"},"description":"Provider ids the calling integrator turned off in the partner dashboard. They were not asked and no route uses them. Present only when there are some."}},"required":["from","to","amount","routes","failures","assets"]},"RoutesEvent":{"type":"object","properties":{"stage":{"$ref":"#/components/schemas/Stage"},"routes":{"type":"array","items":{"$ref":"#/components/schemas/Route"}},"assets":{"$ref":"#/components/schemas/AssetRefs"},"prices":{"$ref":"#/components/schemas/UsdPrices"}},"required":["stage","routes","assets"],"description":"Full ranked list so far; replace the previous list. Stage 1: direct; 2: hub; 3: refinement."},"SseEvent":{"oneOf":[{"type":"object","properties":{"event":{"const":"routes"},"data":{"$ref":"#/components/schemas/RoutesEvent"}},"required":["event","data"]},{"type":"object","properties":{"event":{"const":"done"},"data":{"$ref":"#/components/schemas/Quote"}},"required":["event","data"]},{"type":"object","properties":{"event":{"const":"error"},"data":{"type":"object","properties":{"error":{"const":"internal"}},"required":["error"]}},"required":["event","data"]}],"description":"Logical event representation; the HTTP response uses SSE event: and JSON data: lines."},"CreateSwapBody":{"type":"object","properties":{"routeId":{"type":"string","format":"uuid"},"recipient":{"type":"string","minLength":1,"maxLength":128},"refundAddress":{"type":"string","description":"On the sending chain. Not needed with a connected sender wallet, nor on FixedFloat and CCE Cash routes (refunds through their support). Checked when given.","minLength":1,"maxLength":128},"sender":{"type":"string","minLength":1,"maxLength":128},"mode":{"type":"string","enum":["qr","connect_wallet","host_wallet"],"default":"qr"},"clientReference":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_.:-]+$"},"walletSenders":{"$ref":"#/components/schemas/WalletSenders"}},"required":["routeId","recipient"],"additionalProperties":false},"Approval":{"type":"object","properties":{"token":{"type":"string"},"spender":{"type":"string"},"amount":{"$ref":"#/components/schemas/Atomic"}},"required":["token","spender","amount"]},"EvmTransaction":{"type":"object","properties":{"kind":{"const":"evm"},"chainId":{"type":"integer","minimum":0},"to":{"type":"string"},"data":{"type":"string"},"value":{"$ref":"#/components/schemas/Atomic"},"approve":{"$ref":"#/components/schemas/Approval"}},"required":["kind","chainId","to","data","value"]},"SolanaTransaction":{"type":"object","properties":{"kind":{"const":"solana"},"transaction":{"type":"string","contentEncoding":"base64","description":"Unsigned serialized versioned transaction for Wallet Standard signAndSendTransaction."}},"required":["kind","transaction"]},"Transaction":{"oneOf":[{"$ref":"#/components/schemas/EvmTransaction"},{"$ref":"#/components/schemas/SolanaTransaction"}],"discriminator":{"propertyName":"kind","mapping":{"evm":"#/components/schemas/EvmTransaction","solana":"#/components/schemas/SolanaTransaction"}}},"Deposit":{"type":"object","properties":{"address":{"type":"string"},"memo":{"type":"string"},"amount":{"$ref":"#/components/schemas/Atomic"},"expiresAt":{"$ref":"#/components/schemas/Timestamp"}},"required":["address","amount"],"description":"Send exactly amount in one transfer, including the memo if present."},"SwapLeg":{"type":"object","properties":{"provider":{"type":"string"},"via":{"type":"string"},"from":{"$ref":"#/components/schemas/AssetId"},"to":{"$ref":"#/components/schemas/AssetId"},"state":{"$ref":"#/components/schemas/LegState"},"expectedOut":{"$ref":"#/components/schemas/Atomic"},"providerOrderId":{"type":"string"},"payoutTx":{"type":"string"},"events":{"type":"array","description":"When the step first entered each state, oldest first.","items":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/LegState"},"at":{"$ref":"#/components/schemas/Timestamp"}},"required":["state","at"]}},"walletStep":{"type":"object","properties":{"sender":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/Atomic"},"ready":{"type":"boolean"},"tx":{"$ref":"#/components/schemas/Transaction"},"depositTx":{"type":"string"},"expiresAt":{"$ref":"#/components/schemas/Timestamp"},"deposit":{"type":"object","required":["address"],"properties":{"address":{"type":"string"},"memo":{"type":"string"}}}},"required":["sender","amountIn","ready"]}},"required":["provider","from","to","state","expectedOut","providerOrderId","events"]},"Swap":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"state":{"$ref":"#/components/schemas/OrderState"},"from":{"$ref":"#/components/schemas/AssetId"},"to":{"$ref":"#/components/schemas/AssetId"},"amountIn":{"$ref":"#/components/schemas/Atomic"},"quotedOut":{"$ref":"#/components/schemas/Atomic"},"expectedOut":{"$ref":"#/components/schemas/Atomic"},"recipient":{"type":"string"},"refundAddress":{"type":"string","description":"Where a failed swap is refunded. Absent on routes whose exchanges take none (refunds through their support)."},"rateType":{"type":"string","enum":["fixed","float"],"description":"fixed only if every step is fixed."},"createdAt":{"$ref":"#/components/schemas/Timestamp"},"finishedAt":{"$ref":"#/components/schemas/Timestamp"},"deposit":{"$ref":"#/components/schemas/Deposit"},"tx":{"$ref":"#/components/schemas/Transaction"},"sender":{"type":"string"},"depositTx":{"type":"string"},"checkedAt":{"type":"integer","description":"When we last asked a provider for this swap's status (ms since epoch)."},"checkAfter":{"type":"integer","description":"POST /v1/swap/{id}/check is allowed again from this time (ms since epoch). Absent when allowed now."},"legs":{"type":"array","items":{"$ref":"#/components/schemas/SwapLeg"}},"assets":{"$ref":"#/components/schemas/AssetRefs"},"help":{"type":"array","description":"Who to contact about each step: the provider that booked it (Trocador for exchanges behind it).","items":{"type":"object","properties":{"provider":{"type":"string"},"name":{"type":"string"},"page":{"type":"string","description":"Its page on our site."},"support":{"type":"string","description":"https or mailto link."},"refunds":{"type":"string","description":"Its refund terms."}},"required":["provider","name"]}}},"required":["id","state","from","to","amountIn","quotedOut","expectedOut","recipient","rateType","createdAt","legs","assets","help"],"description":"deposit describes an address flow; tx describes a wallet flow. action_required means contact provider support with providerOrderId. quotedOut is the selected net output; expectedOut is the booked final leg output."},"SwapResponse":{"type":"object","properties":{"swap":{"$ref":"#/components/schemas/Swap"}},"required":["swap"]},"CreateSwapResponse":{"type":"object","properties":{"secret":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","description":"Keep private. Required for reading/reporting without the owning integrator secret key."},"swap":{"$ref":"#/components/schemas/Swap"}},"required":["secret","swap"]},"ReplaySwapResponse":{"type":"object","properties":{"replayed":{"const":true},"swap":{"$ref":"#/components/schemas/Swap"}},"required":["replayed","swap"],"description":"The original secret is not returned again. Read this swap using the owning integrator secret key."},"SentBody":{"type":"object","properties":{"tx":{"type":"string","minLength":16,"maxLength":128,"description":"First-leg transaction hash. EVM: 0x followed by 64 hex digits. Solana: 64–90 base58 characters.","oneOf":[{"pattern":"^0x[0-9a-fA-F]{64}$"},{"pattern":"^[1-9A-HJ-NP-Za-km-z]{64,90}$"}]},"seq":{"type":"integer","minimum":1,"maximum":3,"default":1,"description":"Step number. Wallet transaction hash, or existing user-account order id for Hyperliquid/Peer."}},"required":["tx"],"additionalProperties":false},"SwapSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"state":{"type":"string"},"clientReference":{"type":["string","null"]},"createdAt":{"$ref":"#/components/schemas/Timestamp"}},"required":["id","state","clientReference","createdAt"]},"ListSwapsResponse":{"type":"object","properties":{"swaps":{"type":"array","items":{"$ref":"#/components/schemas/SwapSummary"}}},"required":["swaps"]},"ProviderStatus":{"type":"object","properties":{"provider":{"type":"string"},"calls":{"type":"integer","minimum":0},"errors":{"type":"integer","minimum":0},"p95Ms":{"type":["number","null"]}},"required":["provider","calls","errors","p95Ms"]},"WebhookLeg":{"type":"object","properties":{"provider":{"type":"string"},"state":{"$ref":"#/components/schemas/LegState"},"payoutTx":{"type":"string"}},"required":["provider","state"]},"SwapUpdated":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"const":"swap.updated"},"createdAt":{"$ref":"#/components/schemas/Timestamp"},"data":{"type":"object","properties":{"swapId":{"type":"string","format":"uuid"},"clientReference":{"type":"string"},"state":{"$ref":"#/components/schemas/OrderState"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/WebhookLeg"}}},"required":["swapId","state","legs"]}},"required":["id","type","createdAt","data"],"description":"Emitted when an integrator swap changes order state. Contains no addresses. id stays the same across delivery retries; deduplicate by id. Read full details using the integrator secret key."},"OpenApiDocument":{"type":"object","required":["openapi","info","paths"],"properties":{"openapi":{"const":"3.1.0"},"info":{"type":"object"},"paths":{"type":"object"}},"additionalProperties":true},"WalletSenders":{"type":"object","properties":{"evm":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"svm":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$"}},"additionalProperties":false,"description":"Connected accounts by chain family. A later wallet step receives the preceding payout here. The recipient on the exact hub chain can also own the step."},"PartnerProviders":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["exchange","bridge","dex"]},"logo":{"type":["string","null"],"description":"Path on our own origin, /v1/logo/provider:<id>."},"enabled":{"type":"boolean"}},"required":["id","name","kind","logo","enabled"]}}},"required":["providers"]}},"responses":{"Unauthorized":{"description":"Invalid integrator key or disallowed browser origin; listing swaps requires an integrator secret key.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["unauthorized"]}},"required":["error"]}]}}}},"NotFound":{"description":"No such swap, invalid id, wrong swap secret, or swap not owned by the integrator. Also returned when swap support is disabled.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["not_found"]}},"required":["error"]}]}}}},"Internal":{"description":"Internal error. No internal details are exposed.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["internal"]}},"required":["error"]}]}}}},"RateLimited":{"description":"Request limit exceeded. Wait before making another request.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["rate_limited"]}},"required":["error"]}]}}},"headers":{"Retry-After":{"description":"Seconds until the limit resets.","schema":{"type":"integer","minimum":1}}}},"InvalidQuote":{"description":"Malformed JSON, invalid fields, unknown or identical assets, or an address invalid on its chain.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["invalid_request","unknown_asset","same_asset","invalid_address"]}},"required":["error"]}]}}}},"InvalidBooking":{"description":"Invalid JSON/fields/idempotency key; unsupported route; wrong chain address; or sender required for a bridge/DEX wallet flow.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["invalid_request","invalid_idempotency_key","route_not_supported","invalid_address","wallet_required"]}},"required":["error"]}]}}}},"InvalidSent":{"description":"Invalid JSON or transaction hash, or the first leg is not a wallet transaction.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["invalid_request"]}},"required":["error"]}]}}}},"Blocked":{"description":"Risk screening blocked this swap before any provider saw addresses. Blocked on every route.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["blocked"]}},"required":["error"]}]}}}},"RateChanged":{"description":"Booked output is more than 1% worse than the quoted output. Do not fund the refused booking.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["rate_changed"]}},"required":["error"]}]}}}},"AlreadySent":{"description":"The first-leg transaction has already been recorded.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["already_sent"]}},"required":["error"]}]}}}},"QuoteExpired":{"description":"The route is no longer in the recent quote cache. Request a fresh quote.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["quote_expired"]}},"required":["error"]}]}}}},"BodyTooLarge":{"description":"Quote request body exceeds 2048 bytes.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["body_too_large"]}},"required":["error"]}]}}}},"UnsupportedMedia":{"description":"Content-Type must start with application/json.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["unsupported_media_type"]}},"required":["error"]}]}}}},"ProviderFailed":{"description":"Provider booking failed or returned invalid instructions. Provider create calls are never automatically retried.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["provider_failed"]}},"required":["error"]}]}}}},"Busy":{"description":"Too many quote requests in flight.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["busy"]}},"required":["error"]}]}}},"headers":{"Retry-After":{"schema":{"type":"integer","const":1},"description":"Retry a quote after one second."}}},"NoProvidersEnabled":{"description":"The calling integrator turned every provider off in the partner dashboard. No provider was asked.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["no_providers_enabled"]}},"required":["error"]}]}}}},"ProviderDisabled":{"description":"The route uses a provider the calling integrator turned off. Quote again with your key.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"string","enum":["provider_disabled"]}},"required":["error"]}]}}}}}}}